Sign in to follow this  
Followers 0
MISIIM

Regex Strip XML

5 posts in this topic

#1 ·  Posted (edited)

How would I use a regex to strip xml and leave the content? I currently have this.

\<([^>"']("[^"]")?('[^']')?)*\>

Thanks.

Edited by MISIIM

Share this post


Link to post
Share on other sites




“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Yes I have. It seems like overkill. I just need to remove any xml.

Edit: Fixed

Edited by MISIIM

Share this post


Link to post
Share on other sites

When you say "remove xml" are you just wanting to strip off tags and leave text?

Share this post


Link to post
Share on other sites

It would be useful to have some example XML and to see what parts you want to extract.


“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0