Created
May 3, 2015 12:48
-
-
Save sugavaneshb/24051f771a19d838ec5f to your computer and use it in GitHub Desktop.
Regex Search Bookmarklet
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
javascript:(function(){var p=/(\>{1}[^\n\<]*?)([^\n\<]{0,30}regu[^\n\<]{0,10})/gi,b=document.body;b.innerHTML=b.innerHTML.replace(p,'$1<span style="background-color:red;">$2</span>');})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For now, the regular expression is static, need to make this dynamic and have a search bar to feed in the regular expressions to search with.