mIRC Home    About    Download    Register    News    Help

Print Thread
escaping single charecter ($regex) #133496 21/10/05 02:07 PM
Joined: Jul 2005
Posts: 56
W
whoami Offline OP
Babel fish
OP Offline
Babel fish
W
Joined: Jul 2005
Posts: 56
Hi sorry for annoying but i just wants to know how can i skip single charecter?
blink,\l

Re: escaping single charecter ($regex) #133497 21/10/05 02:11 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
In regex you can escape a character from having its "special meaning" by prefixing it with a \ or by enclosing it within \Q\E

For example, the dot normally matches any character, though if you use it like: \. or \Q.\E it is now a regular dot. You might wonder how you can escape the char \ then, well by simply putting another one in front of it. \\


Gone.
Re: escaping single charecter ($regex) #133498 21/10/05 03:59 PM
Joined: Jul 2005
Posts: 56
W
whoami Offline OP
Babel fish
OP Offline
Babel fish
W
Joined: Jul 2005
Posts: 56
special thanks fop and sorry for annoying blush