the
what seemed to be happening was that it was applying my compiled pattern to the whole string, not just a portion (as seen in things like the egrep command). so i filled out the expression with
the
re.VERBOSE
flag isn't helping any. it lets me write weirder expressions. at least re.DEBUG
helped a little.what seemed to be happening was that it was applying my compiled pattern to the whole string, not just a portion (as seen in things like the egrep command). so i filled out the expression with
^.*
and .*$
to make it applicable to the whole string. that made it work.the
re.DEBUG
flag was interesting. i made a little command to compile expressions with that flag. it let me see what they get compiled into (presumably in the form of some coding).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.