\-(moz|o|webkit|ms|khtml)\-(?!font-smoothing|osx|print|backface).+?;
Last active
February 1, 2022 13:21
-
-
Save crazyyy/baee46c02259f7bc895861899cce7f85 to your computer and use it in GitHub Desktop.
#regexp || examples
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
style\s*=\s*?("((""|\\"|[^"<>])*?)"|'((''|\\'|[^'<>])*?)'|[^\s"'>]*?) | |
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
$string = preg_replace('/<div id=\"myid\">.*<\/div>/','anything',$string); | |
$search = '/<link .*\/>/'; | |
$response = preg_replace($search,'', $response); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment