Hi everyone,
I want "encoding="XX"" removed from a string and I'll be using regular expressions.Where XX could be any possible encoding: UTF-8, UTF-16, ISO...
Here is a sample:
And this is how it should look like after the replacement:<?xml version="1.0" encoding="UTF-8"?>
How would the pattern look like?<?xml version="1.0"?>
Note that I'm not asking how to use regular expressions but how to build a pattern.