mIRC Home    About    Download    Register    News    Help

Print Thread
#187530 07/10/07 03:24 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
I'm not really that good with regex or regsubs, etc.

But/so how would I go about creating a valid nick!user@host checking regex?


What do you do at the end of the world? Are you busy? Will you save us?
Jigsy #187534 07/10/07 04:30 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
/\w+?!\w+?@(?:[^.]+\.)+[^.]+/

hixxy #187535 07/10/07 04:47 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Thanks, but is there any way of making it more specific? shocked


What do you do at the end of the world? Are you busy? Will you save us?
Jigsy #187536 07/10/07 04:49 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
I could make it stricter but I'm not sure of the exact character set allowed in nicknames/addresses by the rfc.. If you can find out I can turn it into a regex for you.


Link Copied to Clipboard