carlgomerski
Programmer
Hi,
I'm very new to regex and I'm trying to cleanup a string (which is xml) being passed into a web service. The string/xml's getting extra '/' values added. Via a regex replace I'm trying to change:
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
to:
<?xml version="1.0" encoding="UTF-8"?>
I'm using '@"<?xml version=\""1.0\"" encoding=\""UTF-8\""\?>"' which seems to find the value? For the life of me I can't figure out the regex expression in the replace?
I'm very new to regex and I'm trying to cleanup a string (which is xml) being passed into a web service. The string/xml's getting extra '/' values added. Via a regex replace I'm trying to change:
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
to:
<?xml version="1.0" encoding="UTF-8"?>
I'm using '@"<?xml version=\""1.0\"" encoding=\""UTF-8\""\?>"' which seems to find the value? For the life of me I can't figure out the regex expression in the replace?