Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
regex question
Forums
Active Threads
Search
Who's Online
Help
Print Thread
regex question
#
172179
07/03/07
12:37 AM
Joined:
Oct 2005
Posts: 827
P
pouncer
OP
Hoopy frood
OP
pouncer
Hoopy frood
P
Joined:
Oct 2005
Posts: 827
say the string is like this:
:008:host YEBWPYSG938267:<br/>
the string will always be the same apart for the 'YEBWPYSG938267' part. How can I grab the 'YEBWPYSG938267' part using regex?
Copy Link to Clipboard
Re: regex question
pouncer
#
172180
07/03/07
12:53 AM
Joined:
Sep 2005
Posts: 2,881
H
hixxy
Hoopy frood
hixxy
Hoopy frood
H
Joined:
Sep 2005
Posts: 2,881
Code:
//noop $regex(:008:host YEBWPYSG938267:<br/>,/^:008:host ([^:]+):/) | echo -a $regml(1)
Copy Link to Clipboard
Re: regex question
hixxy
#
172181
07/03/07
01:06 AM
Joined:
Oct 2005
Posts: 827
P
pouncer
OP
Hoopy frood
OP
pouncer
Hoopy frood
P
Joined:
Oct 2005
Posts: 827
thanks alot hixxy, that is perfect. 1 question
could i also change that into an if?
like
if (whatever/check for 001 here) echo -a $regml(1)
because the data is incoming through a socket
Copy Link to Clipboard
Re: regex question
pouncer
#
172183
07/03/07
01:15 AM
Joined:
Sep 2005
Posts: 2,881
H
hixxy
Hoopy frood
hixxy
Hoopy frood
H
Joined:
Sep 2005
Posts: 2,881
Yep. if ($regex(...,...)) { echo -a $regml(1) }
Copy Link to Clipboard
Re: regex question
hixxy
#
172185
07/03/07
01:44 AM
Joined:
Oct 2005
Posts: 827
P
pouncer
OP
Hoopy frood
OP
pouncer
Hoopy frood
P
Joined:
Oct 2005
Posts: 827
thanks!!
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
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage