![]() |
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 :) |
Hey that might be useful for vbt where when it first opened all releases had to preced with [Release] - ;)
- miSt |
You mean:
Code:
/^\[release\]\w.*/ |
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. :D
|
All times are GMT. The time now is 03:00 PM. |
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:
|