Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Thu Nov 27, 2003 6:40 am   

RegExpr
 
Does anybody know if this is valid

<a+>(?:z|y|w|v|u|t|s|r|q|p|o|n|m|l|k|j|h|g|f|e|d|c|b)

I want to match any HTML tag followed by a single letter except, A,I since these can be valid single words.


So I would expect it to match.
<test>s </test> or
<test>f </test>
but NOT match
<test>stop </test>

Does anybody have some good web site links about RegExpressions?
Reply with quote
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Thu Nov 27, 2003 7:05 am   
 
ok, I think the correct regexpr would be

<a+>[zywvutsrqponmlkjhgfedcb]
Reply with quote
hatespyware
Apprentice


Joined: 16 Dec 2002
Posts: 103

PostPosted: Thu Nov 27, 2003 10:06 am   
 
quote:
Originally posted by Talahaski
Does anybody have some good web site links about RegExpressions?


perlretut and perlre or any book on Perl.
Reply with quote
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Thu Nov 27, 2003 10:46 pm   
 
Thanks for the links
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Nov 28, 2003 7:33 pm   
 
I don't know if either format is correct, but neither will do what you want. If you had used the alphabet forward instead of backward you'd have probably spotted it for yourself.

You left out x.
Reply with quote
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Sun Nov 30, 2003 12:45 am   
 
*Chuckle*

Guess I did miss x.

I been playing around with this a bit and found the following to work the best for me.

<w+>[b-hj-zB-HJ-Z]
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net