The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Closer but still no cigar. BTW thank you guys for all your help. That string allows me to put in the first type like 2E2X1 and stops lower case letters but it won't allow any combo of dep or civ no matter what case. Again thanks for the help and if anyone has more ideas I welcome anything right now =)
|
#12
|
||||
|
||||
My code (post #10) does work - I have tested it myself. Please post your implementation of it.
|
#13
|
|||
|
|||
Quote:
^([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. |
#14
|
||||
|
||||
Isn't there supposed to be a pipe in there?
Code:
^([0-9][A-Z][0-9][X13579][0-9])|(DEP|Civ){0,1}$ |
#15
|
|||
|
|||
With the last few ideas i have tried throwing it in there and it doesn't help
|
#16
|
||||
|
||||
Quote:
No, a pipe will not work - furthermore, my condition at the end makes it optional "{min,max}". |
#17
|
||||
|
||||
Reason I asked is because I was testing it in the Regulator and I couldn't get a match until I added the pipe.
|
#18
|
|||
|
|||
http://www.combatarenas.com/test.php
Then here is the php code. PHP Code:
|
#19
|
|||
|
|||
I guess either the software that tests the code or vbulletin/regex doesn't interpret the equation the right now. in the software it shows
^([0-9][A-Z][0-9][X13579][0-9])|(DEP|Civ){0,1}$ as working perfectly for what i want. DEP is a match Dep is not. Civ is a match and CIV is not. But that exact same code on vbulletin not only matches DEP but dep and depp... and so on. Its like vbulletin doesn't even use the equation that i am putting in. |
#20
|
||||
|
||||
Whoops. I thought you wanted to allow "DEP" or "Civ" tacked onto the end of the string. Sorry, my bad.
This one should work. Code:
/^(([0-9][A-Z][0-9][X13579][0-9])|(DEP|Civ))$/ |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|