[thelist] REGEX problem
The Lists
thelists at antonakis.co.uk
Fri Feb 27 14:34:12 CST 2004
Hi,
I want to include the minus symbol as a required character in a REGEX
expression, but am stumped as to how to do it..any suggestions?
So far I have come up with: ereg("C-[A-Z]{4}|CF-[A-Z]{3}",$data) but it
doesn't work. I know I have to change the way I have displayed the minus
symbol, but I don't know what.
I want to allow items like:
C-ABCD and CF-GHI
Cheers
Alexis
More information about the thelist
mailing list