[triangle-zpug] how to match strings in python

Joseph Mack NA3T jmack at wm7d.net
Thu Apr 2 15:57:57 UTC 2009


On Thu, 2 Apr 2009, Josh Johnson wrote:

(and Tom and Chris)

> you can loop over a string like a list, like this:
>
> for c in string1:
>    for m in matched string:
>         if c != m:
>             break

Thanks to all of you

this was what I expected, but I couldn't find it in the 
docs.

> Have you seen the 're' module? What you're talking about is basically what 
> regular expressions do in the background :)

no, don't know a thing about it. Let me get onto it.

Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!



More information about the triangle-zpug mailing list