in reply to regular expression-xerox
If your character classes have any character ranges in it, then you are going to have to make sure that you account for that. For example if you have "A-D" then you will want to convert that to "(?:A|B|C|D)" and not "(?:A|-|D)".
In Section
Seekers of Perl Wisdom