Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Regex for nested structure

1 view
Skip to first unread message

Jochen Daum

unread,
Apr 19, 2004, 11:30:16 PM4/19/04
to
Hi,

I have some JS code going like

n2 = new something(){
with n2{
__add (a);
__add (d);
}

n3 = new somethinge_lse(){
with n3{
__add (x);
__add (y);
}

I would like to capture the combinations of

n2, something, a
n2, something, d

with a regular expression.

I have one that works, buts it only reading the first combination
(n2, something, a)
and then goes on with
(n3, something_else, x)

I would have though the Regex would go through all combinations?

Any ideas for help?

Jochen

--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/

0 new messages