The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
help with Regular Expression
I need something like this
Code:
^([1-9]|[1-4][0-9]|50)$ |
#2
|
||||
|
||||
Code:
^([a-zA-Z0-9]{6})$ this might work, or get you going in the right direction. not the best at regex --------------- Added [DATE]1323036760[/DATE] at [TIME]1323036760[/TIME] --------------- would be easier if we knew what this was going to be used for. you can test your expressions with http://regexlib.com and the Regex tester link |
#3
|
|||
|
|||
<a href="https://vborg.vbsupport.ru/showthread.php?p=2257327&highlight=regular+express ion+tester#post2257327" target="_blank">https://vborg.vbsupport.ru/showt...er#post2257327</a>
|
#4
|
|||
|
|||
didnt work but thanks im trying to use the tester its for a custom field that i only want to allow 6 letters or number any combination just cant surpass 6 characters.
|
#5
|
|||
|
|||
This seems to work
/\b[a-zA-Z0-9]{6}\b/ |
#6
|
|||
|
|||
i get this error when i add that to the custom field and the text i am entering is "nycjdm" w/o the quotes Code:
You did not enter the correct format for the License Plate Text field. Please read the field description for the expected format. |
#7
|
|||
|
|||
Well, what is the "field description for the expected format"?
|
#8
|
|||
|
|||
Here is a screen shot
|
#9
|
|||
|
|||
nvm i got it working thanks!!! u rock
|
#10
|
||||
|
||||
so what was the issue? what did you do to resolve it? what regex ended up working?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|