Le mercredi 17 juillet 2013 09:46:46 UTC+2, Joshua Landau a écrit :
> On 17 July 2013 07:15, 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 tha
On 17 July 2013 07:15, 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 to me.
--
http:/
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.match("(?P(date=(?P[^\s]+))\s+(ti
On 16 July 2013 16:38, MRAB 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 substring.
>
> What you'
On 16/07/2013 11:18, Mohan L wrote:
On Tue, Jul 16, 2013 at 2:12 PM, Joshua Landau mailto:jos...@landau.ws>> wrote:
On 16 July 2013 07:55, Mohan L mailto:l.mohan...@gmail.com>> wrote:
>
> Dear All,
>
> Here is my script :
>
> #!/usr/bin/python
> import r
On Tue, Jul 16, 2013 at 2:12 PM, Joshua Landau wrote:
> On 16 July 2013 07:55, Mohan L 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.m
On 16 July 2013 07:55, Mohan L 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("(?P(date=(?P[^\s]+))\s+(time=(?P[^\s]+)))",
> logs)
>
> # print
> print m.groupdic
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("(?P(date=(?P[^\s]+))\s+(time=(?P[^\s]+)))",
logs)
# print
print m.groupdict()
Output:
{'date': '2012-11-28', 'datetime': '*date=2012-