Re: How to write replace string for object which will be substituted? [regexp]

2009-08-06 Thread Chris Rebert
On Thu, Aug 6, 2009 at 2:03 PM, Ryniek90 wrote: >> 2) If you really want to learn regexes, get a copy of _Mastering Regular >> Expressions_ by Friedl (either 2nd or 3rd edition) >> > > I made preview of that book, but some pages are disabled from preview. Has > that book topics about Python regexp'

How to write replace string for object which will be substituted? [regexp]

2009-08-06 Thread Ryniek90
2) If you really want to learn regexes, get a copy of _Mastering Regular Expressions_ by Friedl (either 2nd or 3rd edition) I made preview of that book, but some pages are disabled from preview. Has that book topics about Python regexp's? If so, i must buy it. -- http://mail.python.org/ma

Re: How to write replace string for object which will be substituted? [regexp]

2009-08-06 Thread Aahz
In article , ryniek90 wrote: > >I started learning regexp, and some things goes well, but most of them >still not. 1) 'Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.' --Jamie Zawinski, comp.emacs.xemacs, 8/1997 2) If you

Re: How to write replace string for object which will be substituted? [regexp]

2009-08-05 Thread ryniek
On 5 Sie, 13:28, Anthra Norell wrote: > MRAB wrote: > > ryniek90 wrote: > >> Hi. > >> I started learning regexp, and some things goes well, but most of > >> them still not. > > >> I've got problem with some regexp. Better post code here: > > >> " > >>  >>> import re > >>  >>> mail = '\nn...@mail.c

Re: How to write replace string for object which will be substituted? [regexp]

2009-08-05 Thread ryniek
On 5 Sie, 13:28, Anthra Norell wrote: > MRAB wrote: > > ryniek90 wrote: > >> Hi. > >> I started learning regexp, and some things goes well, but most of > >> them still not. > > >> I've got problem with some regexp. Better post code here: > > >> " > >>  >>> import re > >>  >>> mail = '\nn...@mail.c

Re: How to write replace string for object which will be substituted? [regexp]

2009-08-05 Thread Anthra Norell
MRAB wrote: ryniek90 wrote: Hi. I started learning regexp, and some things goes well, but most of them still not. I've got problem with some regexp. Better post code here: " >>> import re >>> mail = '\nn...@mail.com\nname1 [at] mail [dot] com\nname2 [$at$] mail [$dot$] com\n' >>> mail '

Re: How to write replace string for object which will be substituted? [regexp]

2009-08-05 Thread Jon Clements
On 5 Aug, 07:53, ryniek wrote: > On 5 Sie, 00:55, MRAB wrote: > > > > > ryniek90 wrote: > > > Hi. > > > I started learning regexp, and some things goes well, but most of them > > > still not. > > > > I've got problem with some regexp. Better post code here: > > > > " > > >  >>> import re > > >  >

Re: How to write replace string for object which will be substituted? [regexp]

2009-08-05 Thread ryniek
On 5 Sie, 00:55, MRAB wrote: > ryniek90 wrote: > > Hi. > > I started learning regexp, and some things goes well, but most of them > > still not. > > > I've got problem with some regexp. Better post code here: > > > " > >  >>> import re > >  >>> mail = '\nn...@mail.com\nname1 [at] mail [dot] com\nn

Re: How to write replace string for object which will be substituted? [regexp]

2009-08-04 Thread ryniek
On 5 Sie, 00:55, MRAB wrote: > ryniek90 wrote: > > Hi. > > I started learning regexp, and some things goes well, but most of them > > still not. > > > I've got problem with some regexp. Better post code here: > > > " > >  >>> import re > >  >>> mail = '\nn...@mail.com\nname1 [at] mail [dot] com\nn

Re: How to write replace string for object which will be substituted? [regexp]

2009-08-04 Thread MRAB
ryniek90 wrote: Hi. I started learning regexp, and some things goes well, but most of them still not. I've got problem with some regexp. Better post code here: " >>> import re >>> mail = '\nn...@mail.com\nname1 [at] mail [dot] com\nname2 [$at$] mail [$dot$] com\n' >>> mail '\nn...@mail.c

How to write replace string for object which will be substituted? [regexp]

2009-08-04 Thread ryniek90
Hi. I started learning regexp, and some things goes well, but most of them still not. I've got problem with some regexp. Better post code here: " >>> import re >>> mail = '\nn...@mail.com\nname1 [at] mail [dot] com\nname2 [$at$] mail [$dot$] com\n' >>> mail '\nn...@mail.com\nname1 [at] mail