The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom Field REGEX Help
I've noticed some bots always use certain things in the custom fields so I thought I would try to disallow those certain strings in the custom fields, but I can't really get it to work.
I've been trying: Code:
[^(123456)]
That code will work for the first requirement, but not for the second. I have the field set the not required, so I don't know why it's even checking when it's empty. I'm not sure if this is a bug (or feature :P) of vBulletin, but I was hoping if someone could help me with the regular expression to match said requirements. Using vBulletin 3.6.* |
#2
|
||||
|
||||
Try this:
Code:
^[^(123456)]*$ |
#3
|
|||
|
|||
That sorta works, except it doesn't allow their input if a number is anywhere in the field - and it's a field some people might input numbers into. It should match if, and only if, the entire field equals 1 or 123456.
it should allow: Code:
hello 1 hello 123 hello hello 123 1hello 23 Code:
1 123456 |
#4
|
||||
|
||||
Kind of contradicting there, no?
|
#5
|
|||
|
|||
It should match if, and only if, the entire field does not equal 1 or 123456 *
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|