Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
$regex result
Forums
Active Threads
Search
Who's Online
Help
Print Thread
$regex result
#
169900
30/01/07
02:43 PM
Joined:
Dec 2006
Posts: 31
K
klaaamp
OP
Ameglian cow
OP
klaaamp
Ameglian cow
K
Joined:
Dec 2006
Posts: 31
If I use $regex, can I output what it grabbed instead of 1 or 0?
Copy Link to Clipboard
Re: $regex result
klaaamp
#
169903
30/01/07
03:13 PM
Joined:
Oct 2005
Posts: 1,741
G
genius_at_work
Hoopy frood
genius_at_work
Hoopy frood
G
Joined:
Oct 2005
Posts: 1,741
/help $regml
-genius_at_work
Copy Link to Clipboard
Re: $regex result
klaaamp
#
169918
30/01/07
10:43 PM
Joined:
Oct 2006
Posts: 166
Kuwait
B
b1ink
Vogon poet
b1ink
Vogon poet
B
Joined:
Oct 2006
Posts: 166
Kuwait
Group the pattern which matches your wishes result "()" then use $regml(N)
N refers to the Nth result.
Kind Regards, blink
Copy Link to Clipboard
Re: $regex result
b1ink
#
169956
31/01/07
09:06 AM
Joined:
Dec 2006
Posts: 31
K
klaaamp
OP
Ameglian cow
OP
klaaamp
Ameglian cow
K
Joined:
Dec 2006
Posts: 31
I tried with var %regml = $regex(%var1,\d\d\d\d) | set %year $regml(1) but %year is just blank
whats wrong?
Copy Link to Clipboard
Re: $regex result
klaaamp
#
169957
31/01/07
10:55 AM
Joined:
Oct 2006
Posts: 166
Kuwait
B
b1ink
Vogon poet
b1ink
Vogon poet
B
Joined:
Oct 2006
Posts: 166
Kuwait
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
)
)
Kind Regards, blink
Copy Link to Clipboard
Re: $regex result
klaaamp
#
169958
31/01/07
10:56 AM
Joined:
Oct 2006
Posts: 166
Kuwait
B
b1ink
Vogon poet
b1ink
Vogon poet
B
Joined:
Oct 2006
Posts: 166
Kuwait
Also enclose your pattern with // so it would make it easy for you to use the modifiers.
Kind Regards, blink
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage