Insert caret just before specified character

"=?windows-1250?Q?Petr_L=E1z=F2ovsk=FD?= [email protected] [sed-users]" <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
How do I add caret '^' before each comma ',' in text string? Trying this:

echo {"errors":{"subject_id":["mandatory","Contact not exist."]}} | sed.exe -e "s/,/^,/g"

but does not work. Also trying this:

echo {"errors":{"subject_id":["mandatory","Contact not exist."]}} | sed.exe -e "s/,/^^,/g"

because in windows shell caret is escape character. So in this case first carret should escape another one (which should remain), but it also does not work.

What am I doing wrong?

L.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.