Created
June 18, 2012 07:42
-
-
Save Alxandr/2947323 to your computer and use it in GitHub Desktop.
Removing all internal links from a html-string
This file contains hidden or 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
/* 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