Regular expressions help
Andrei
fake at fake.net
Tue Feb 24 14:27:48 EST 2004
Mike Hearne wrote on 24 Feb 2004 10:54:45 -0800:
> Given the following three lines:
>
> name fredgeorge
> name georgeharry
> name george
>
> I'm trying to find a regular expression that matches only the third
> one.
It's pretty easy:
"name george$"
"$" means end of string
--
Yours,
Andrei
=====
Real contact info (decode with rot13):
cebwrpg5 at jnanqbb.ay. Fcnz-serr! Cyrnfr qb abg hfr va choyvp cbfgf. V ernq
gur yvfg, fb gurer'f ab arrq gb PP.
More information about the Python-list
mailing list