[triangle-zpug] how to match strings in python
Joseph Mack NA3T
jmack at wm7d.net
Thu Apr 2 16:56:59 UTC 2009
On Thu, 2 Apr 2009, Sam Brauer wrote:
>
> Sometimes I love little exercises like this. Here's a function that does what you want just using basic Python.
>
> def getMatchingSubstring(s1, s2):
> if len(s1) < len(s2):
thanks. You're ahead of me here. This was the next problem
:-)
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