Quote:
Originally Posted by silentace
I am not sure what posting my implementation means? do you want the site i run it on? or do you want me to copy and paste exactly what i put in?
^([0-9][A-Z][0-9][X13579][0-9])(DEP|Civ){0,1}$
With Regex Coach it doesn't work with dep/DEP/civ/Civ or anything. I also tried on my site and it'not working either, same issue as with regex. I even tried with the beginning and trailing "/" but that didn't work either.
|
Implementation = how you are using it (ie. post the code that is using the regex).
Quote:
Originally Posted by Digital Jedi
Isn't there supposed to be a pipe in there?
Code:
^([0-9][A-Z][0-9][X13579][0-9])|(DEP|Civ){0,1}$
|
No, a pipe will not work - furthermore, my condition at the end makes it optional "
{min,max}".