I have found much documentation on specific patterns, but I can't find
anything explaining how to reject strings that match both groups.
My string could contain specific letters or numbers. If there are
numbers, then it should NOT have the letters. If it has the letters,
then it should NOT have the numbers.
My pattern for the letters is [cCoOhHlL] and numbers is the entire range
[0-9].
How can I specify matching one group or the other, and not both?
Thanks for your help.
Tom
anything explaining how to reject strings that match both groups.
My string could contain specific letters or numbers. If there are
numbers, then it should NOT have the letters. If it has the letters,
then it should NOT have the numbers.
My pattern for the letters is [cCoOhHlL] and numbers is the entire range
[0-9].
How can I specify matching one group or the other, and not both?
Thanks for your help.
Tom
Comment