[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
Gamers.IRC board • Recurring patterns with $regex
Page 1 of 1

Recurring patterns with $regex

Posted: 09.11.2012 19:42
by Tuxman
The $regex command does not understand expressions like \d{3,5} because mIRC treats a comma as a special character (see the syntax of $gettok() for example). A way to work around it is using a temporary variable for the regular expression.

var %regex = /\d{3,5}/
echo $regex(mystring123,%regex)