I need to remove some characters from a string in PHP In the specific first I need to find the string below in a larger text, and then remove the characters 'BG' from the string below:
<IdCodice>BG326325806</IdCodice>
basically the resulting string should be:
<IdCodice>326325806</IdCodice>
Now I know that with $re = '/[A-Z]{2}\d*/m'; I can match the string, but I don't know how to replace the original with the fixed string '326325806' in the text