brackets content regular expression

netimen netimen at gmail.com
Fri Oct 31 13:25:41 EDT 2008


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: 'aaaa 123 < 1 aaa < t bbb < a <tt  > ff > > 2 >
bbbbb'. How to match text between the uppermost brackets ( 1 aaa < t
bbb < a <tt  > ff > > 2 )?

P.S. sorry for my english.



More information about the Python-list mailing list