Page 1 of 1
how to regex this one?
Posted: Wed Oct 13, 2004 1:51 pm
by johnny
*w*w*w*.**e*r*o*t*i*k*.*t*v.*t*r
Posted: Wed Oct 13, 2004 8:05 pm
by Syzop
"*w*w*w*.**e*r*o*t*i*k*.*t*v.*t*r" is the actual text?
Well, then escape all * to \* and all . to \.
so: \*w\*w\*w\*\.\*\*e\*etc.....
makes me wonder if people actually go visit that link if they have to type it manually ;).
(on a sidenote, in next unreal there will be an additional shorter/easier method)
Posted: Wed Oct 13, 2004 11:11 pm
by johnny
Must be, since we are getting them =)
Thanks for the regex
Posted: Wed Oct 20, 2004 10:12 pm
by Jason
Syzop wrote:(on a sidenote, in next unreal there will be an additional shorter/easier method)
Oh?
Like what?
You have me curious
Posted: Fri Oct 22, 2004 7:23 pm
by codemastr
The new version of the regexp library we use supports a "quoting" mechanism (it works like vi). So you would be able to do:
\Q*w*w*w*.**e*r*o*t*i*k*.*t*v.*t*r\E
And it would treat everything between the \Q and \E as plaintext.