Rewriting new parameter system to use regular expressions. It's not as pretty but is way more flexible and better for validation. This way, users can supply their own flags as well, or any other custom formats for parameter syntax. Bug 697