The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Regular expressions
Learn them. They look scary but once you get used to them they're a godsend.
This one makes sure a string begins with "message" and is followed by a number: Code:
/^message[0-9]*$/ This is helpful: http://www.english.uga.edu/humcomp/perl/regex2a.html |
#2
|
||||
|
||||
Hey that might be useful for vbt where when it first opened all releases had to preced with [Release] -
- miSt |
#3
|
|||
|
|||
You mean:
Code:
/^\[release\]\w.*/ |
#4
|
||||
|
||||
preg_replace() is even more fun. It has the power to match and extract substrings from your match string that can be used within the replace string.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|