• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1156
  • Last Modified:

Regular expression for to replace XML node


I have following XML:

<?xml version="1.0" encoding="UTF-8"?>



<channel about="http://www.us-cert.gov/cas/techalerts/index.html">
<title>US-CERT Technical Cyber Security Alerts</title>
<description>US-CERT Technical Cyber Security Alerts provide timely
information about current security issues, vulnerabilities, and
<rights>Produced 2011 by US-CERT, a government organization.</rights>
  <li resource="http://www.us-cert.gov/cas/techalerts/TA11-286A.html" />
  <li resource="http://www.us-cert.gov/cas/techalerts/TA11-284A.html" />
  <li resource="http://www.us-cert.gov/cas/techalerts/TA11-256A.html" />
  <li resource="http://www.us-cert.gov/cas/techalerts/TA11-222A.html" />
  <li resource="http://www.us-cert.gov/cas/techalerts/TA11-221A.html" />
  <li resource="http://www.us-cert.gov/cas/techalerts/TA11-201A.html" />
  <li resource="http://www.us-cert.gov/cas/techalerts/TA11-200A.html" />
  <li resource="http://www.us-cert.gov/cas/techalerts/TA11-193A.html" />
  <li resource="http://www.us-cert.gov/cas/techalerts/TA11-166A.html" />
  <li resource="http://www.us-cert.gov/cas/techalerts/TA11-165A.html" />

I am using this XML in Nintex Workflow. I want to write a regular expression to replace all xmlns strings (in bold above) with empty strings. What could be the regular expression which identifies the pattern in it. I tried (<RDF)[a-b1-9/.=#"](>) but it does not work.

Please help. Thanks !
  • 3
1 Solution
käµfm³d 👽Commented:
How about:


Open in new window

käµfm³d 👽Commented:
Alternatively, you might try:


Open in new window

pratz09Author Commented:
Thanks a lot !!!!
käµfm³d 👽Commented:
NP. Glad  to help = )
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now