in reply to Re: Making rules in Regex for string content and size
in thread Makeing rules in Regex for string content and size

You should escape the - in the character class, or it will match all characters from & to ' which is not really what you want, is it?
[A-Z0-9 ,"&\-']
would be the correct form if I am right.

Replies are listed 'Best First'.
RE: RE: Re: Making rules in Regex for string content and size
by nuance (Hermit) on Jun 07, 2000 at 00:43 UTC
    You can just stick it anywhere that it won't be interpreted as part of a range so:
    [-A-Z0-9 ,"&'] or even [A-Z-0-9 ,"&']
    Will work

    Nuance