 |
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: 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? |
|
|
 |
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Thu Nov 27, 2003 7:05 am |
ok, I think the correct regexpr would be
<a+>[zywvutsrqponmlkjhgfedcb] |
|
|
 |
hatespyware Apprentice
Joined: 16 Dec 2002 Posts: 103
|
Posted: 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. |
|
|
 |
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Thu Nov 27, 2003 10:46 pm |
Thanks for the links
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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. |
|
|
 |
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: 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] |
|
|
 |
|
|