How to replace inside regex?

Suliman via Digitalmars-d-learn digitalmars-d-learn at
Thu Dec 17 04:57:27 PST 2015

I can't understand how to replace in regex. I have got next task:
find all commas in strings inside quotes and replace them.

foo, bar, "hello, user", baz

I wrote next regexp that find part that include commas inside the 
auto partWithComma = matchAll(line, r);

but I can't understand how to replace commas here. I have only 
ideas to do something like:

auto partWithComma = matchAll(line, r).replaceAll(",", " ");

More information about the Digitalmars-d-learn mailing list