![]() |
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.* |
Try this:
Code:
^[^(123456)]*$ |
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 Code:
1 |
Quote:
|
Quote:
|
All times are GMT. The time now is 04:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|