Skip to content

Instantly share code, notes, and snippets.

@tonyonodi
Created June 15, 2015 11:02
Show Gist options
  • Save tonyonodi/326814c7ec32a47b3791 to your computer and use it in GitHub Desktop.
Save tonyonodi/326814c7ec32a47b3791 to your computer and use it in GitHub Desktop.
XML regex (gross)
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