Created
June 15, 2015 11:02
-
-
Save tonyonodi/326814c7ec32a47b3791 to your computer and use it in GitHub Desktop.
XML regex (gross)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Obviously you can't parse XML with regex but if you just need to grab some values from a feed quickly... | |
(?<=tag>).*(?=<\/tag) | |
should do the trick. Falls over if anything is nested etc. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment