Re: help on python regular expression named group

2013-07-17 Thread wxjmfauth
Le mardi 16 juillet 2013 08:55:58 UTC+2, Mohan L a écrit : Dear All, Here is my script : #!/usr/bin/python import re # A string. logs = date=2012-11-28 time=21:14:59 # Match with named groups. m =

Re: help on python regular expression named group

2013-07-17 Thread Joshua Landau
On 17 July 2013 07:15, wxjmfa...@gmail.com wrote: Not sure, I'm correct. I took you precise string to refresh my memory. I'm glad to see you doing something else, but I don't think you understood his problem. Note that his problem has not solution, which a few seconds of Googling has confirmed

Re: help on python regular expression named group

2013-07-17 Thread wxjmfauth
Le mercredi 17 juillet 2013 09:46:46 UTC+2, Joshua Landau a écrit : On 17 July 2013 07:15, wxjmfa...@gmail.com wrote: Not sure, I'm correct. I took you precise string to refresh my memory. I'm glad to see you doing something else, but I don't think you understood his problem.

Re: help on python regular expression named group

2013-07-16 Thread Joshua Landau
On 16 July 2013 07:55, Mohan L l.mohan...@gmail.com wrote: Dear All, Here is my script : #!/usr/bin/python import re # A string. logs = date=2012-11-28 time=21:14:59 # Match with named groups. m = re.match((?Pdatetime(date=(?Pdate[^\s]+))\s+(time=(?Ptime[^\s]+))), logs) # print

Re: help on python regular expression named group

2013-07-16 Thread Mohan L
On Tue, Jul 16, 2013 at 2:12 PM, Joshua Landau jos...@landau.ws wrote: On 16 July 2013 07:55, Mohan L l.mohan...@gmail.com wrote: Dear All, Here is my script : #!/usr/bin/python import re # A string. logs = date=2012-11-28 time=21:14:59 # Match with named groups. m =

Re: help on python regular expression named group

2013-07-16 Thread MRAB
On 16/07/2013 11:18, Mohan L wrote: On Tue, Jul 16, 2013 at 2:12 PM, Joshua Landau jos...@landau.ws mailto:jos...@landau.ws wrote: On 16 July 2013 07:55, Mohan L l.mohan...@gmail.com mailto:l.mohan...@gmail.com wrote: Dear All, Here is my script :

Re: help on python regular expression named group

2013-07-16 Thread Joshua Landau
On 16 July 2013 16:38, MRAB pyt...@mrabarnett.plus.com wrote: On 16/07/2013 11:18, Mohan L wrote: I using another third party python script. It takes the regex from configuration file. I can't write any code. I have to do all this in single regex. A capture group captures a single