Skip to content

Instantly share code, notes, and snippets.

@peysal
Last active August 29, 2015 14:24
Show Gist options
  • Save peysal/686fee9156bf620d1ca2 to your computer and use it in GitHub Desktop.
Save peysal/686fee9156bf620d1ca2 to your computer and use it in GitHub Desktop.
Remove xml tag and removing data within element
<mapping path="/B49C/FASE1">/B49C/FASE1</mapping>
<mapping path="/B49C/FASE2">/B49C/FASE2</mapping>
@peysal
Copy link
Author

peysal commented Jul 10, 2015

How do we remove /B49C/FASE1 & /B49C/FASE2 ?

Answer: [\w/]++(?=<)

How do we remove all the tags above:

Answer: <[^>]+>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment