how to regex this one?

These are old archives. They are kept for historic purposes only.
Post Reply
johnny

how to regex this one?

Post by johnny » Wed Oct 13, 2004 1:51 pm

*w*w*w*.**e*r*o*t*i*k*.*t*v.*t*r

Syzop
UnrealIRCd head coder
Posts: 1955
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop » Wed Oct 13, 2004 8:05 pm

"*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)

johnny

Post by johnny » Wed Oct 13, 2004 11:11 pm

Must be, since we are getting them =)
Thanks for the regex

Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason » Wed Oct 20, 2004 10:12 pm

Syzop wrote:(on a sidenote, in next unreal there will be an additional shorter/easier method)
Oh?

Like what?

You have me curious
Why the hell can't my signature be empty?
"Your message contains too few characters."

codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr » Fri Oct 22, 2004 7:23 pm

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.
-- codemastr

Post Reply