[BangPypers] Parse multi line with re module.

Gora Mohanty gora at mimirtech.com
Tue Jan 3 15:37:20 CET 2012


On Tue, Jan 3, 2012 at 8:03 PM, Pratap Chakravarthy <prataprc at gmail.com> wrote:
> Hi Ganesh, may be you can try this out,
>
>> re.findall(r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)', str )

Try:
  re.findall(r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)',
'Searching for OPUSH on in all the wrong places' )

Regards,
Gora


More information about the BangPypers mailing list