What is Python?
Alex Martelli
aleaxit at yahoo.com
Tue Sep 19 03:31:53 EDT 2000
"William Tanksley" <wtanksle at dolphin.openprojects.net> wrote in message
news:slrn8sd3ed.9rf.wtanksle at dolphin.openprojects.net...
[snip]
> cat /scripts/movies/brian/* | grep "\\bjudea" | grep "\\bfront\\b"
>
> The direct translation is reasonably obvious (using the fileinput, glob,
> and re modules). My laziness is currently stopping me from finding a
> non-re solution, but a truly pythonic solution wouldn't have to use re.
Non-re solutions would have a hard time with the word-boundary
concept in general.
Alex
More information about the Python-list
mailing list