[EMAIL PROTECTED] wrote:
hi
i wish to find an reg exp for matching nested parenthesis of varying
level like
string =
somewords1(words(somewords2)-(some(some)words3)somestuff)somestuff
and be able to evaluate the pair starting from the inner most(the
deepest level) , ie (some)
up till the
On 2007-01-23, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
hi
i wish to find an reg exp for matching nested parenthesis of
varying level like
string =
It is not possible, because the set of strings containing
balanced parenthesis is not regular. Python re's aren't *really*
regular expressions,
hi
i wish to find an reg exp for matching nested parenthesis of varying
level like
string =
somewords1(words(somewords2)-(some(some)words3)somestuff)somestuff
and be able to evaluate the pair starting from the inner most(the
deepest level) , ie (some)
up till the outer most. What is a good reg exp
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
| hi
| i wish to find an reg exp for matching nested parenthesis of varying
| level like
| string =
| somewords1(words(somewords2)-(some(some)words3)somestuff)somestuff
| and be able to evaluate the pair starting from the inner most(the
|