regex unwell right parens


i have .net regex:



^(?<prefix>("[^"]*"))\s(?<attrgroup>(\([^\)]*\)))\s(?<suffix>("[^"]*"))$


it morally matches following strings:



"some prefix" ("attribute 1" "value 1") "some suffix"
"some prefix" ("attribute 1" "value 1" "attribute 2" "value 2") "some suffix"


it fails on...



"some prefix" ("attribute 1" "value (fail) 1") "some suffix"


...due right paren after "fail".



how i cgange regex attrgroup review organisation finish adult containing "("attribute 1" "value (fail) 1")"? i've looking during too enlarged need uninformed eyes. thanks!



edit: attrgroup won't ever enclose anything pairs double-quoted strings.



Comments

Popular posts from this blog

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

unable interpret unicode character