Re: brackets content regular expression

2008-11-01 Thread netimen
Yeah, I know it's quite simple to do manually. I was just interested if it could be done by regular expressions. Thank you anyway. On 1 нояб, 00:36, Matimus <[EMAIL PROTECTED]> wrote: > On Oct 31, 11:57 am, netimen <[EMAIL PROTECTED]> wrote: > > > > > > > Thank's but if i have several top-level gro

Re: brackets content regular expression

2008-10-31 Thread Matimus
On Oct 31, 11:57 am, netimen <[EMAIL PROTECTED]> wrote: > Thank's but if i have several top-level groups and want them match one > by one: > > text = "a < b < Ó > d > here starts a new group:  < e < f  > g >" > > I want to match first " b < Ó > d " and then " e < f  > g " but not " > b < Ó > d > he

Re: brackets content regular expression

2008-10-31 Thread Pierre Quentel
On 31 oct, 20:38, netimen <[EMAIL PROTECTED]> wrote: > there may be different levels of nesting: > > "a < b < Ó > d > here starts a new group: < 1 < e < f  > g > 2 > > another group: < 3 >" > > On 31 окт, 21:57, netimen <[EMAIL PROTECTED]> wrote: > > > Thank's but if i have several top-level groups

Re: brackets content regular expression

2008-10-31 Thread bearophileHUGS
netimen: > Thank's but if i have several top-level groups and want them match one > by one: > text = "a < b < Ó > d > here starts a new group:  < e < f  > g >" What other requirements do you have? If you list them all at once people will write you the code faster. bye, Bearophile -- http://mail.p

Re: brackets content regular expression

2008-10-31 Thread netimen
there may be different levels of nesting: "a < b < Ó > d > here starts a new group: < 1 < e < f > g > 2 > another group: < 3 >" On 31 окт, 21:57, netimen <[EMAIL PROTECTED]> wrote: > Thank's but if i have several top-level groups and want them match one > by one: > > text = "a < b < Ó > d > here

Re: brackets content regular expression

2008-10-31 Thread netimen
Thank's but if i have several top-level groups and want them match one by one: text = "a < b < с > d > here starts a new group: < e < f > g >" I want to match first " b < с > d " and then " e < f > g " but not " b < с > d > here starts a new group: < e < f > g " On 31 окт, 20:53, Matimus <[E

Re: brackets content regular expression

2008-10-31 Thread Matimus
On Oct 31, 10:25 am, netimen <[EMAIL PROTECTED]> wrote: > I have a text containing brackets (or what is the correct term for > '>'?). I'd like to match text in the uppermost level of brackets. > > So, I have sth like: ' 123 < 1 aaa < t bbb < a ff > > 2 > > b'. How to match text between the

Re: brackets content regular expression

2008-10-31 Thread Paul McGuire
On Oct 31, 12:25 pm, netimen <[EMAIL PROTECTED]> wrote: > I have a text containing brackets (or what is the correct term for > '>'?). I'd like to match text in the uppermost level of brackets. > > So, I have sth like: ' 123 < 1 aaa < t bbb < a ff > > 2 > > b'. How to match text between the

Re: brackets content regular expression

2008-10-31 Thread Alex_Gaynor
On Oct 31, 1:25 pm, netimen <[EMAIL PROTECTED]> wrote: > I have a text containing brackets (or what is the correct term for > '>'?). I'd like to match text in the uppermost level of brackets. > > So, I have sth like: ' 123 < 1 aaa < t bbb < a ff > > 2 > > b'. How to match text between the

brackets content regular expression

2008-10-31 Thread netimen
I have a text containing brackets (or what is the correct term for '>'?). I'd like to match text in the uppermost level of brackets. So, I have sth like: ' 123 < 1 aaa < t bbb < a ff > > 2 > b'. How to match text between the uppermost brackets ( 1 aaa < t bbb < a ff > > 2 )? P.S. sorry