in reply to Regular expression

A-z
That's why, there's several non-alphabetic characters between 'Z' and 'a', including the backslash. [A-Za-z0-9] or [[:alnum:]] will match alphanumeric characters.

Update: When you're not sure why your regex doesn't work, use re 'debug';