Skip to content

Instantly share code, notes, and snippets.

@yetti
Created November 27, 2012 19:21
Show Gist options
  • Save yetti/4156394 to your computer and use it in GitHub Desktop.
Save yetti/4156394 to your computer and use it in GitHub Desktop.
RegEx to select "a href" from HTML
a\s*(?i)href\s*=\s*(\"([^"]*\")|'[^']*'|([^'">\s]+))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment