mIRC Home    About    Download    Register    News    Help

Print Thread
#69834 31/01/04 04:37 PM
Joined: Dec 2002
Posts: 68
P
Babel fish
OP Offline
Babel fish
P
Joined: Dec 2002
Posts: 68
After doing a regex and there is a match, how can I get out the text that it matches?

My regex: $regex(#56Moderate,^#[0-9]+). I want to be able to get the #56 somehow. The number itself can change in amount of digits.

I tried $regml(1).

#69835 31/01/04 04:39 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
//echo -a $regex(#56Moderate,^#([0-9]+)) $regml(1)


Link Copied to Clipboard