468,296 Members | 1,323 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,296 developers. It's quick & easy.

Regex for nested structure


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 Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
Jul 17 '05 #1
0 1148

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Dean H. Saxe | last post: by
2 posts views Thread by Tim Conner | last post: by
1 post views Thread by Raghavendra Mahuli | last post: by
13 posts views Thread by Chris Lieb | last post: by
8 posts views Thread by rh0dium | last post: by
4 posts views Thread by Allen | last post: by
7 posts views Thread by MrNobody | last post: by
5 posts views Thread by David C. Ullrich | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.