Complex(?) regex: Is expression, but not another
- by Kieron
(If you can make a better title, please do)
Hi,
I need to make sure a string matches the following regex:
^[0-9a-zA-Z]{1}[0-9a-zA-Z\.\-_]*$
(Starts with a letter or number, then any number of letters, numbers, dots, dashes or underscores)
But given that, I need to make sure it doesn't match a Guid, my Guid matching reg-ex looks like this…