Re: match pattern

2010-09-20 Thread Diez B. Roggisch
rudikk00 writes: > I remember perl has a match function =~/H/ --> which searches if there > is "H" pattern in line. Is there a reasonable analog of it in python? It's called a regular expression, which can be matched or searched in a string. Take a look at the module "re" in python. http://d

Re: match pattern

2010-09-20 Thread Ian Kelly
On Mon, Sep 20, 2010 at 12:58 PM, rudikk00 wrote: > Hi all, > > I remember perl has a match function =~/H/ --> which searches if there > is "H" pattern in line. Is there a reasonable analog of it in python? > Yes, have a look at the re module in the standard library. If all you're interested in

match pattern

2010-09-20 Thread rudikk00
Hi all, I remember perl has a match function =~/H/ --> which searches if there is "H" pattern in line. Is there a reasonable analog of it in python? thanks! Alex -- http://mail.python.org/mailman/listinfo/python-list