P
Picho
Hi all,
first of all, does anyone know of a newsgroup dedicated for regular
expressions?
second - my problem:
I have a string that represents a formula of the format: "formula(...)"
the formula itself can contain other formula expressions like "Calc(...)",
"Assign(...)" etc
these expressions can be nested i.e "Calc(Assign(...), Formula(...))"
of course the expression is not limited in length, nesting levels or
complexity.
my goal is to extract the elements as groups.
I narrowed my problem down to this:
lets say "Calc(...)" can calc any mathematical expression as in
"Calc(5*(2+1))". is there any way to "count" the "()" to find the closing
")" of the calc expression and extracting it in a group?
Thanks,
Picho
first of all, does anyone know of a newsgroup dedicated for regular
expressions?
second - my problem:
I have a string that represents a formula of the format: "formula(...)"
the formula itself can contain other formula expressions like "Calc(...)",
"Assign(...)" etc
these expressions can be nested i.e "Calc(Assign(...), Formula(...))"
of course the expression is not limited in length, nesting levels or
complexity.
my goal is to extract the elements as groups.
I narrowed my problem down to this:
lets say "Calc(...)" can calc any mathematical expression as in
"Calc(5*(2+1))". is there any way to "count" the "()" to find the closing
")" of the calc expression and extracting it in a group?
Thanks,
Picho