Is there a way to include an if statement in a regular expression, in javascript. This sort of thing:
var regex = /"if followed by [0-9] then match [a-m], else match [n-z]"/i so:
"a9" //returns a match "aa" //doesn't return a match "na" //returns a match I hope this makes sense.
Thanks in advance

