Re: Regular Expression Skipping Match

2010-10-02 Thread MRAB
On 02/10/2010 04:13, AON LAZIO wrote: Hi python pals, I need this help, say I have h = "Hello \n World" How would I create a regular expression that match only "Hello World"? (ignore \n in the middle) Thanks in advance \s matches any whitespace, so: Hello\s+World -- http:/

Re: Regular Expression Skipping Match

2010-10-02 Thread Thomas Jollans
On Saturday 02 October 2010, it occurred to AON LAZIO to exclaim: > Hi python pals, >I need this help, say I have >h = "Hello \n World" >How would I create a regular expression that match only "Hello World"? > (ignore \n in the middle) What exactly are you looking for? One way to solve

Regular Expression Skipping Match

2010-10-01 Thread AON LAZIO
Hi python pals, I need this help, say I have h = "Hello \n World" How would I create a regular expression that match only "Hello World"? (ignore \n in the middle) Thanks in advance -- Aonlazio 'Peace is always the way.' NW -- http://mail.python.org/mailman/listinfo/python-list