|
-
Jul 14th, 2009, 05:32 PM
#1
Thread Starter
Lively Member
Regex match strings between , only when outside of complete brackets
Hello,
I am trying to make a regex that will match strings between a comma only if the comma is outside of complete brackets. Brackets inside of " " should not count. Examples below.
one(1,2),two(3,4)
should match:
one(1,2)
two(3,4)
test(ok(1,2),2),another(5,testing(3,4))
should match:
test(ok(1,2),2)
another(5,testing(3,4))
A more complex finale:
test(check(onemore(ok,4,9),"no"),"(","2","3"),next("forward",ok(34.2),"3,2,5"),last(1,2)
This should match:
test(check(onemore(ok,4,9),"no"),"(","2","3")
next("forward",ok(34.2),"3,2,5")
last(1,2)
Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|