By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,636 Members | 1,814 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,636 IT Pros & Developers. It's quick & easy.

Regex for nested structure

P: n/a
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/
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.