<div class="gmail_quote">On Mon, Sep 20, 2010 at 12:58 PM, rudikk00 <span dir="ltr"><<a href="mailto:rudikk99@yahoo.com">rudikk99@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hi all,<br>
<br>
I remember perl has a match function =~/H/ --> which searches if there<br>
is "H" pattern in line. Is there a reasonable analog of it in python?<br></blockquote></div><br>Yes, have a look at the re module in the standard library.<br><br>If all you're interested in is exact matches and not regular expressions, you can also use the "in" operator:<br>

<br>if "H" in my_string:<br>    do_something()<br><br>Cheers,<br>Ian<br>