mIRC Homepage
Posted By:
klaaamp
$regex result
-
30/01/07
02:43 PM
If I use $regex, can I output what it grabbed instead of 1 or 0?
Posted By:
genius_at_work
Re: $regex result
-
30/01/07
03:13 PM
/help $regml
-genius_at_work
Posted By:
b1ink
Re: $regex result
-
30/01/07
10:43 PM
Group the pattern which matches your wishes result "()" then use $regml(N)
N refers to the Nth result.
Posted By:
klaaamp
Re: $regex result
-
31/01/07
09:06 AM
I tried with var %regml = $regex(%var1,\d\d\d\d) | set %year $regml(1) but %year is just blank
whats wrong?
Posted By:
b1ink
Re: $regex result
-
31/01/07
10:55 AM
Regex Grouping
read this for more info.
As for your example you didn't group your pattern as below:
$regex(%var1,
(
\d\d\d\d
)
)
Posted By:
b1ink
Re: $regex result
-
31/01/07
10:56 AM
Also enclose your pattern with // so it would make it easy for you to use the modifiers.
©
mIRC Discussion Forums