Skip to content

Instantly share code, notes, and snippets.

@Alxandr
Created June 18, 2012 07:42
Show Gist options
  • Save Alxandr/2947323 to your computer and use it in GitHub Desktop.
Save Alxandr/2947323 to your computer and use it in GitHub Desktop.
Removing all internal links from a html-string
/* arbitrary regex replace method. Can be php preg_replace or something like that */
RegexReplace("<a [^>]*href=\"#[^\">]*\"[^>]*?>(.*?)</a[^>]*?>", "$1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment