vb.net - regex - return all characters between quotes, multiple times per line -


i novice @ using regular expressions , still trying figure out, please excuse inconsistencies in question below.

everything below i'd using regular expressions in vb.net.

using regex in vb.net, i'm attempting extract delimited data flat file shares similarities csv formatted file, keep data between double quotes, delimited commas.

here example of typical line:

[java] customer [customerid="1000", customername="acme service, inc"] [java] customer [customerid="2000", customername="widget factory, llc"] 

the output i'm looking is:

"1000","acme service, inc" "2000","widget factory, llc" 

edit

using expression, "([""'])(?:(?=(\\?))\2.)*?\1", i've been able extract "1000", having trouble getting first , subsequent double quoted "" values on same line.

also, not limited 2 values, indeterminate set of double quoted values on same line.

any appreciated.

the problem when have repeating capture group, last instance captured. way indefinite number of matches out of regex have regex applied globally. simplest way across whole file have (".*?") shown in fiddle


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -