Add validation to flag codeblock
Use OptionParsers built in regular expressions checker
Use OptionParsers string replacement