Text - Regex_Replace for xml prefix replace is not working calling from espace

I am trying to use  Regex_Replace of Text extension for replacing namespace and prefixes in the xml string from an espace. Below are the inputs given to the method to replace prefixes and it is not working. The returned xml has prefixes.

Pattern: "(<)(\\w+:)(.*?>)"
Replace:  "$1$3"
IgnoreCase: True

If I open the extension and do the same using main method, it is working properly. But if i use it from an espace action it is not working.
Appreciate your help


If I'm reading your request correctly you'd like to use a server or client action which makes use of the Regex_Replace action from the Text extension to remove all prefixes in a given xml string?

After some testing I found out that the following pattern works as intended: 


Hopefully this will resolve your issue.

Kind regards,