Case sensitive searches in Google ChromeHow do I perform a case-sensitive search in Google Chrome?Chrome case...

Reason why dimensional travelling would be restricted

Roots of 6th chords on the guitar for different inversions/voicings

When was drinking water recognized as crucial in marathon running?

Make me a metasequence

Is it possible to convert a suspension fork to rigid by drilling it?

For the ranger's Natural Explorer feature, which favored terrain are caves and dungeons classified under?

How to substitute values from a list into a function?

A bug in Excel? Conditional formatting for marking duplicates also highlights unique value

Non-Italian European mafias in USA?

Real life puzzle: Unknown alphabet or shorthand

Woman in friend circle telling people I "should be fired"

Levi-Civita symbol: 3D matrix

Do higher etale homotopy groups of spectrum of a field always vanish?

Did Amazon pay $0 in taxes last year?

Is there a legal poaching?

What happened to QGIS 2.x LTR?

What is better: yes / no radio, or simple checkbox?

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

Test pad's ESD protection

Is there a full canon version of Tyrion's jackass/honeycomb joke?

Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?

Dystopian novel where telepathic humans live under a dome

It took me a lot of time to make this, pls like. (YouTube Comments #1)

Why are special aircraft used for the carriers in the United States Navy?



Case sensitive searches in Google Chrome


How do I perform a case-sensitive search in Google Chrome?Chrome case sensitive Ctrl-FHow to do a whole word search in Chrome's Find dialogDisable emoji icons in Chrome?Disable Google Chrome QuicksearchChrome case sensitive Ctrl-FHow do I perform a case-sensitive search in Google Chrome?Disable address bar search in Google Chrome at www.google.comHow do you search for a phrase on a page in Chrome? (Not a string match)Google keeps refreshing itself constantly in ChromeHow do I clear google chrome predictive searches?How to add exceptions to Google Chrome's automatic seaching from the URL bar?Does Chrome treat the Content Security Policy HOST as case sensitive?Google Chrome Searches instead of Following the Address













40















Is there a way to perform case sensitive on page searches in Google Chrome?



screenshot of browser



Say I'm searching for "Tree" and I want to exclude all variants such as "tree" or "TREE" which don't match the case I'm looking for. Is this possible?










share|improve this question




















  • 1





    The good old days of XP...

    – Luke Fisk-Lennon
    Sep 22 '18 at 0:00











  • I noticed this was asked 8yr ago. Does anyone know if this is possible yet?

    – Tim
    Sep 28 '18 at 2:30
















40















Is there a way to perform case sensitive on page searches in Google Chrome?



screenshot of browser



Say I'm searching for "Tree" and I want to exclude all variants such as "tree" or "TREE" which don't match the case I'm looking for. Is this possible?










share|improve this question




















  • 1





    The good old days of XP...

    – Luke Fisk-Lennon
    Sep 22 '18 at 0:00











  • I noticed this was asked 8yr ago. Does anyone know if this is possible yet?

    – Tim
    Sep 28 '18 at 2:30














40












40








40


6






Is there a way to perform case sensitive on page searches in Google Chrome?



screenshot of browser



Say I'm searching for "Tree" and I want to exclude all variants such as "tree" or "TREE" which don't match the case I'm looking for. Is this possible?










share|improve this question
















Is there a way to perform case sensitive on page searches in Google Chrome?



screenshot of browser



Say I'm searching for "Tree" and I want to exclude all variants such as "tree" or "TREE" which don't match the case I'm looking for. Is this possible?







google-chrome






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 19 '14 at 11:29









Der Hochstapler

68k49230285




68k49230285










asked Sep 24 '10 at 19:43









LazerLazer

6,4163695130




6,4163695130








  • 1





    The good old days of XP...

    – Luke Fisk-Lennon
    Sep 22 '18 at 0:00











  • I noticed this was asked 8yr ago. Does anyone know if this is possible yet?

    – Tim
    Sep 28 '18 at 2:30














  • 1





    The good old days of XP...

    – Luke Fisk-Lennon
    Sep 22 '18 at 0:00











  • I noticed this was asked 8yr ago. Does anyone know if this is possible yet?

    – Tim
    Sep 28 '18 at 2:30








1




1





The good old days of XP...

– Luke Fisk-Lennon
Sep 22 '18 at 0:00





The good old days of XP...

– Luke Fisk-Lennon
Sep 22 '18 at 0:00













I noticed this was asked 8yr ago. Does anyone know if this is possible yet?

– Tim
Sep 28 '18 at 2:30





I noticed this was asked 8yr ago. Does anyone know if this is possible yet?

– Tim
Sep 28 '18 at 2:30










5 Answers
5






active

oldest

votes


















31














No; as of 6th April 2011, this feature request with Chromium (the open source code base of Chrome) has been rejected.






share|improve this answer





















  • 20





    This is a shame, really.

    – Revolutionair
    Mar 5 '13 at 12:12






  • 3





    Use FF Luke.Use FF Luke.Use FF Luke.

    – gaRex
    Feb 20 '15 at 12:44






  • 3





    Chrome is the new IE.

    – faintsignal
    Dec 12 '16 at 19:18











  • not without an extension/plugin/bookmarklet

    – Trevor Boyd Smith
    Sep 4 '18 at 15:05



















1














There is also a nice plugin for that: QuickFind






share|improve this answer
























  • This add-on looked promising, but doesn't work for me. The shortcut doesn't open the QuickFind text input for me. I'm on Version 69.0.3497.100 (32bit)

    – Benny Bottema
    Nov 5 '18 at 11:38





















1














Developer tools in Chrome supports case sensitive search.



Open Developer Tools for the current tab (Ctrl+Shift+I – that's capital "i"),
then open Search across all sources (Ctrl+Shift+F), and choose Match Case.



If case sensitivity isn't sufficient, this also supports regular expressions.






share|improve this answer










New contributor




user1004488 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




























    0














    Here's a function which prompts for a word and performs a case-sensitive search:



    var searches = searches || 0;

    (function () {
    var count = 0,
    text;
    text = prompt('Search:', '');
    if (text == null || text.length === 0) return;

    function searchWithinNode(node, re) {
    var pos, skip, acronym, middlebit, endbit, middleclone;
    skip = 0;
    if (node.nodeType === 3) {
    pos = node.data.search(re);
    if (pos >= 0) {
    acronym = document.createElement('ACRONYM');
    acronym.title = 'Search ' + (searches + 1) + ': ' + re.toString();
    acronym.style.backgroundColor = backColor;
    acronym.style.borderTop = '1px solid ' + borderColor;
    acronym.style.borderBottom = '1px solid ' + borderColor;
    acronym.style.fontWeight = 'bold';
    acronym.style.color = borderColor;
    middlebit = node.splitText(pos);
    endbit = middlebit.splitText(RegExp.lastMatch.length);
    middleclone = middlebit.cloneNode(true);
    acronym.appendChild(middleclone);
    middlebit.parentNode.replaceChild(acronym, middlebit);
    count++;
    skip = 1;
    }
    } else if (node.nodeType == 1 && node.childNodes && node.tagName.toUpperCase() != 'SCRIPT' && node.tagName.toUpperCase != 'STYLE') for (var child = 0; child < node.childNodes.length; ++child) child = child + searchWithinNode(node.childNodes[child], re);
    return skip;
    }
    var borderColor = '#' + (searches + 8).toString(2).substr(-3).replace(/0/g, '3').replace(/1/g, '6');
    var backColor = borderColor.replace(/3/g, 'c').replace(/6/g, 'f');
    if (searches % 16 / 8 >= 1) {
    var tempColor = borderColor;
    borderColor = backColor;
    backColor = tempColor;
    }
    searchWithinNode(document.body, text);
    window.status = 'Found ' + count + ' match' + (count == 1 ? '' : 'es') + ' for ' + text + '.';
    if (count > 0) searches++;
    })();


    It can be saved as a bookmarklet for easy access.



    References



    Regular Expression Search Bookmarklet



    Highlight Regex Bookmarklet






    share|improve this answer


























    • A version including a gutter: gist.github.com/borisdiakur/9f9d751b4c9cf5acafa2

      – borisdiakur
      Nov 12 '15 at 22:43





















    0














    Indian blogger Amit Agrawal has created a bookmarklet for this function which can do this easily.



    http://www.labnol.org/internet/case-sensitive-find/28186/






    share|improve this answer
























    • Here is an improved version including a gutter: gist.github.com/borisdiakur/9f9d751b4c9cf5acafa2

      – borisdiakur
      Nov 12 '15 at 22:38











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f192437%2fcase-sensitive-searches-in-google-chrome%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    5 Answers
    5






    active

    oldest

    votes








    5 Answers
    5






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    31














    No; as of 6th April 2011, this feature request with Chromium (the open source code base of Chrome) has been rejected.






    share|improve this answer





















    • 20





      This is a shame, really.

      – Revolutionair
      Mar 5 '13 at 12:12






    • 3





      Use FF Luke.Use FF Luke.Use FF Luke.

      – gaRex
      Feb 20 '15 at 12:44






    • 3





      Chrome is the new IE.

      – faintsignal
      Dec 12 '16 at 19:18











    • not without an extension/plugin/bookmarklet

      – Trevor Boyd Smith
      Sep 4 '18 at 15:05
















    31














    No; as of 6th April 2011, this feature request with Chromium (the open source code base of Chrome) has been rejected.






    share|improve this answer





















    • 20





      This is a shame, really.

      – Revolutionair
      Mar 5 '13 at 12:12






    • 3





      Use FF Luke.Use FF Luke.Use FF Luke.

      – gaRex
      Feb 20 '15 at 12:44






    • 3





      Chrome is the new IE.

      – faintsignal
      Dec 12 '16 at 19:18











    • not without an extension/plugin/bookmarklet

      – Trevor Boyd Smith
      Sep 4 '18 at 15:05














    31












    31








    31







    No; as of 6th April 2011, this feature request with Chromium (the open source code base of Chrome) has been rejected.






    share|improve this answer















    No; as of 6th April 2011, this feature request with Chromium (the open source code base of Chrome) has been rejected.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 15 '11 at 23:44

























    answered Sep 24 '10 at 19:55









    John WeldonJohn Weldon

    1,316915




    1,316915








    • 20





      This is a shame, really.

      – Revolutionair
      Mar 5 '13 at 12:12






    • 3





      Use FF Luke.Use FF Luke.Use FF Luke.

      – gaRex
      Feb 20 '15 at 12:44






    • 3





      Chrome is the new IE.

      – faintsignal
      Dec 12 '16 at 19:18











    • not without an extension/plugin/bookmarklet

      – Trevor Boyd Smith
      Sep 4 '18 at 15:05














    • 20





      This is a shame, really.

      – Revolutionair
      Mar 5 '13 at 12:12






    • 3





      Use FF Luke.Use FF Luke.Use FF Luke.

      – gaRex
      Feb 20 '15 at 12:44






    • 3





      Chrome is the new IE.

      – faintsignal
      Dec 12 '16 at 19:18











    • not without an extension/plugin/bookmarklet

      – Trevor Boyd Smith
      Sep 4 '18 at 15:05








    20




    20





    This is a shame, really.

    – Revolutionair
    Mar 5 '13 at 12:12





    This is a shame, really.

    – Revolutionair
    Mar 5 '13 at 12:12




    3




    3





    Use FF Luke.Use FF Luke.Use FF Luke.

    – gaRex
    Feb 20 '15 at 12:44





    Use FF Luke.Use FF Luke.Use FF Luke.

    – gaRex
    Feb 20 '15 at 12:44




    3




    3





    Chrome is the new IE.

    – faintsignal
    Dec 12 '16 at 19:18





    Chrome is the new IE.

    – faintsignal
    Dec 12 '16 at 19:18













    not without an extension/plugin/bookmarklet

    – Trevor Boyd Smith
    Sep 4 '18 at 15:05





    not without an extension/plugin/bookmarklet

    – Trevor Boyd Smith
    Sep 4 '18 at 15:05













    1














    There is also a nice plugin for that: QuickFind






    share|improve this answer
























    • This add-on looked promising, but doesn't work for me. The shortcut doesn't open the QuickFind text input for me. I'm on Version 69.0.3497.100 (32bit)

      – Benny Bottema
      Nov 5 '18 at 11:38


















    1














    There is also a nice plugin for that: QuickFind






    share|improve this answer
























    • This add-on looked promising, but doesn't work for me. The shortcut doesn't open the QuickFind text input for me. I'm on Version 69.0.3497.100 (32bit)

      – Benny Bottema
      Nov 5 '18 at 11:38
















    1












    1








    1







    There is also a nice plugin for that: QuickFind






    share|improve this answer













    There is also a nice plugin for that: QuickFind







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 4 '16 at 9:29









    Lucas CimonLucas Cimon

    288310




    288310













    • This add-on looked promising, but doesn't work for me. The shortcut doesn't open the QuickFind text input for me. I'm on Version 69.0.3497.100 (32bit)

      – Benny Bottema
      Nov 5 '18 at 11:38





















    • This add-on looked promising, but doesn't work for me. The shortcut doesn't open the QuickFind text input for me. I'm on Version 69.0.3497.100 (32bit)

      – Benny Bottema
      Nov 5 '18 at 11:38



















    This add-on looked promising, but doesn't work for me. The shortcut doesn't open the QuickFind text input for me. I'm on Version 69.0.3497.100 (32bit)

    – Benny Bottema
    Nov 5 '18 at 11:38







    This add-on looked promising, but doesn't work for me. The shortcut doesn't open the QuickFind text input for me. I'm on Version 69.0.3497.100 (32bit)

    – Benny Bottema
    Nov 5 '18 at 11:38













    1














    Developer tools in Chrome supports case sensitive search.



    Open Developer Tools for the current tab (Ctrl+Shift+I – that's capital "i"),
    then open Search across all sources (Ctrl+Shift+F), and choose Match Case.



    If case sensitivity isn't sufficient, this also supports regular expressions.






    share|improve this answer










    New contributor




    user1004488 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      1














      Developer tools in Chrome supports case sensitive search.



      Open Developer Tools for the current tab (Ctrl+Shift+I – that's capital "i"),
      then open Search across all sources (Ctrl+Shift+F), and choose Match Case.



      If case sensitivity isn't sufficient, this also supports regular expressions.






      share|improve this answer










      New contributor




      user1004488 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        1












        1








        1







        Developer tools in Chrome supports case sensitive search.



        Open Developer Tools for the current tab (Ctrl+Shift+I – that's capital "i"),
        then open Search across all sources (Ctrl+Shift+F), and choose Match Case.



        If case sensitivity isn't sufficient, this also supports regular expressions.






        share|improve this answer










        New contributor




        user1004488 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        Developer tools in Chrome supports case sensitive search.



        Open Developer Tools for the current tab (Ctrl+Shift+I – that's capital "i"),
        then open Search across all sources (Ctrl+Shift+F), and choose Match Case.



        If case sensitivity isn't sufficient, this also supports regular expressions.







        share|improve this answer










        New contributor




        user1004488 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer








        edited 22 hours ago









        Scott

        15.9k113990




        15.9k113990






        New contributor




        user1004488 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 23 hours ago









        user1004488user1004488

        111




        111




        New contributor




        user1004488 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        user1004488 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        user1004488 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.























            0














            Here's a function which prompts for a word and performs a case-sensitive search:



            var searches = searches || 0;

            (function () {
            var count = 0,
            text;
            text = prompt('Search:', '');
            if (text == null || text.length === 0) return;

            function searchWithinNode(node, re) {
            var pos, skip, acronym, middlebit, endbit, middleclone;
            skip = 0;
            if (node.nodeType === 3) {
            pos = node.data.search(re);
            if (pos >= 0) {
            acronym = document.createElement('ACRONYM');
            acronym.title = 'Search ' + (searches + 1) + ': ' + re.toString();
            acronym.style.backgroundColor = backColor;
            acronym.style.borderTop = '1px solid ' + borderColor;
            acronym.style.borderBottom = '1px solid ' + borderColor;
            acronym.style.fontWeight = 'bold';
            acronym.style.color = borderColor;
            middlebit = node.splitText(pos);
            endbit = middlebit.splitText(RegExp.lastMatch.length);
            middleclone = middlebit.cloneNode(true);
            acronym.appendChild(middleclone);
            middlebit.parentNode.replaceChild(acronym, middlebit);
            count++;
            skip = 1;
            }
            } else if (node.nodeType == 1 && node.childNodes && node.tagName.toUpperCase() != 'SCRIPT' && node.tagName.toUpperCase != 'STYLE') for (var child = 0; child < node.childNodes.length; ++child) child = child + searchWithinNode(node.childNodes[child], re);
            return skip;
            }
            var borderColor = '#' + (searches + 8).toString(2).substr(-3).replace(/0/g, '3').replace(/1/g, '6');
            var backColor = borderColor.replace(/3/g, 'c').replace(/6/g, 'f');
            if (searches % 16 / 8 >= 1) {
            var tempColor = borderColor;
            borderColor = backColor;
            backColor = tempColor;
            }
            searchWithinNode(document.body, text);
            window.status = 'Found ' + count + ' match' + (count == 1 ? '' : 'es') + ' for ' + text + '.';
            if (count > 0) searches++;
            })();


            It can be saved as a bookmarklet for easy access.



            References



            Regular Expression Search Bookmarklet



            Highlight Regex Bookmarklet






            share|improve this answer


























            • A version including a gutter: gist.github.com/borisdiakur/9f9d751b4c9cf5acafa2

              – borisdiakur
              Nov 12 '15 at 22:43


















            0














            Here's a function which prompts for a word and performs a case-sensitive search:



            var searches = searches || 0;

            (function () {
            var count = 0,
            text;
            text = prompt('Search:', '');
            if (text == null || text.length === 0) return;

            function searchWithinNode(node, re) {
            var pos, skip, acronym, middlebit, endbit, middleclone;
            skip = 0;
            if (node.nodeType === 3) {
            pos = node.data.search(re);
            if (pos >= 0) {
            acronym = document.createElement('ACRONYM');
            acronym.title = 'Search ' + (searches + 1) + ': ' + re.toString();
            acronym.style.backgroundColor = backColor;
            acronym.style.borderTop = '1px solid ' + borderColor;
            acronym.style.borderBottom = '1px solid ' + borderColor;
            acronym.style.fontWeight = 'bold';
            acronym.style.color = borderColor;
            middlebit = node.splitText(pos);
            endbit = middlebit.splitText(RegExp.lastMatch.length);
            middleclone = middlebit.cloneNode(true);
            acronym.appendChild(middleclone);
            middlebit.parentNode.replaceChild(acronym, middlebit);
            count++;
            skip = 1;
            }
            } else if (node.nodeType == 1 && node.childNodes && node.tagName.toUpperCase() != 'SCRIPT' && node.tagName.toUpperCase != 'STYLE') for (var child = 0; child < node.childNodes.length; ++child) child = child + searchWithinNode(node.childNodes[child], re);
            return skip;
            }
            var borderColor = '#' + (searches + 8).toString(2).substr(-3).replace(/0/g, '3').replace(/1/g, '6');
            var backColor = borderColor.replace(/3/g, 'c').replace(/6/g, 'f');
            if (searches % 16 / 8 >= 1) {
            var tempColor = borderColor;
            borderColor = backColor;
            backColor = tempColor;
            }
            searchWithinNode(document.body, text);
            window.status = 'Found ' + count + ' match' + (count == 1 ? '' : 'es') + ' for ' + text + '.';
            if (count > 0) searches++;
            })();


            It can be saved as a bookmarklet for easy access.



            References



            Regular Expression Search Bookmarklet



            Highlight Regex Bookmarklet






            share|improve this answer


























            • A version including a gutter: gist.github.com/borisdiakur/9f9d751b4c9cf5acafa2

              – borisdiakur
              Nov 12 '15 at 22:43
















            0












            0








            0







            Here's a function which prompts for a word and performs a case-sensitive search:



            var searches = searches || 0;

            (function () {
            var count = 0,
            text;
            text = prompt('Search:', '');
            if (text == null || text.length === 0) return;

            function searchWithinNode(node, re) {
            var pos, skip, acronym, middlebit, endbit, middleclone;
            skip = 0;
            if (node.nodeType === 3) {
            pos = node.data.search(re);
            if (pos >= 0) {
            acronym = document.createElement('ACRONYM');
            acronym.title = 'Search ' + (searches + 1) + ': ' + re.toString();
            acronym.style.backgroundColor = backColor;
            acronym.style.borderTop = '1px solid ' + borderColor;
            acronym.style.borderBottom = '1px solid ' + borderColor;
            acronym.style.fontWeight = 'bold';
            acronym.style.color = borderColor;
            middlebit = node.splitText(pos);
            endbit = middlebit.splitText(RegExp.lastMatch.length);
            middleclone = middlebit.cloneNode(true);
            acronym.appendChild(middleclone);
            middlebit.parentNode.replaceChild(acronym, middlebit);
            count++;
            skip = 1;
            }
            } else if (node.nodeType == 1 && node.childNodes && node.tagName.toUpperCase() != 'SCRIPT' && node.tagName.toUpperCase != 'STYLE') for (var child = 0; child < node.childNodes.length; ++child) child = child + searchWithinNode(node.childNodes[child], re);
            return skip;
            }
            var borderColor = '#' + (searches + 8).toString(2).substr(-3).replace(/0/g, '3').replace(/1/g, '6');
            var backColor = borderColor.replace(/3/g, 'c').replace(/6/g, 'f');
            if (searches % 16 / 8 >= 1) {
            var tempColor = borderColor;
            borderColor = backColor;
            backColor = tempColor;
            }
            searchWithinNode(document.body, text);
            window.status = 'Found ' + count + ' match' + (count == 1 ? '' : 'es') + ' for ' + text + '.';
            if (count > 0) searches++;
            })();


            It can be saved as a bookmarklet for easy access.



            References



            Regular Expression Search Bookmarklet



            Highlight Regex Bookmarklet






            share|improve this answer















            Here's a function which prompts for a word and performs a case-sensitive search:



            var searches = searches || 0;

            (function () {
            var count = 0,
            text;
            text = prompt('Search:', '');
            if (text == null || text.length === 0) return;

            function searchWithinNode(node, re) {
            var pos, skip, acronym, middlebit, endbit, middleclone;
            skip = 0;
            if (node.nodeType === 3) {
            pos = node.data.search(re);
            if (pos >= 0) {
            acronym = document.createElement('ACRONYM');
            acronym.title = 'Search ' + (searches + 1) + ': ' + re.toString();
            acronym.style.backgroundColor = backColor;
            acronym.style.borderTop = '1px solid ' + borderColor;
            acronym.style.borderBottom = '1px solid ' + borderColor;
            acronym.style.fontWeight = 'bold';
            acronym.style.color = borderColor;
            middlebit = node.splitText(pos);
            endbit = middlebit.splitText(RegExp.lastMatch.length);
            middleclone = middlebit.cloneNode(true);
            acronym.appendChild(middleclone);
            middlebit.parentNode.replaceChild(acronym, middlebit);
            count++;
            skip = 1;
            }
            } else if (node.nodeType == 1 && node.childNodes && node.tagName.toUpperCase() != 'SCRIPT' && node.tagName.toUpperCase != 'STYLE') for (var child = 0; child < node.childNodes.length; ++child) child = child + searchWithinNode(node.childNodes[child], re);
            return skip;
            }
            var borderColor = '#' + (searches + 8).toString(2).substr(-3).replace(/0/g, '3').replace(/1/g, '6');
            var backColor = borderColor.replace(/3/g, 'c').replace(/6/g, 'f');
            if (searches % 16 / 8 >= 1) {
            var tempColor = borderColor;
            borderColor = backColor;
            backColor = tempColor;
            }
            searchWithinNode(document.body, text);
            window.status = 'Found ' + count + ' match' + (count == 1 ? '' : 'es') + ' for ' + text + '.';
            if (count > 0) searches++;
            })();


            It can be saved as a bookmarklet for easy access.



            References



            Regular Expression Search Bookmarklet



            Highlight Regex Bookmarklet







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jul 26 '13 at 2:12

























            answered Apr 13 '13 at 6:20









            Paul SweattePaul Sweatte

            563215




            563215













            • A version including a gutter: gist.github.com/borisdiakur/9f9d751b4c9cf5acafa2

              – borisdiakur
              Nov 12 '15 at 22:43





















            • A version including a gutter: gist.github.com/borisdiakur/9f9d751b4c9cf5acafa2

              – borisdiakur
              Nov 12 '15 at 22:43



















            A version including a gutter: gist.github.com/borisdiakur/9f9d751b4c9cf5acafa2

            – borisdiakur
            Nov 12 '15 at 22:43







            A version including a gutter: gist.github.com/borisdiakur/9f9d751b4c9cf5acafa2

            – borisdiakur
            Nov 12 '15 at 22:43













            0














            Indian blogger Amit Agrawal has created a bookmarklet for this function which can do this easily.



            http://www.labnol.org/internet/case-sensitive-find/28186/






            share|improve this answer
























            • Here is an improved version including a gutter: gist.github.com/borisdiakur/9f9d751b4c9cf5acafa2

              – borisdiakur
              Nov 12 '15 at 22:38
















            0














            Indian blogger Amit Agrawal has created a bookmarklet for this function which can do this easily.



            http://www.labnol.org/internet/case-sensitive-find/28186/






            share|improve this answer
























            • Here is an improved version including a gutter: gist.github.com/borisdiakur/9f9d751b4c9cf5acafa2

              – borisdiakur
              Nov 12 '15 at 22:38














            0












            0








            0







            Indian blogger Amit Agrawal has created a bookmarklet for this function which can do this easily.



            http://www.labnol.org/internet/case-sensitive-find/28186/






            share|improve this answer













            Indian blogger Amit Agrawal has created a bookmarklet for this function which can do this easily.



            http://www.labnol.org/internet/case-sensitive-find/28186/







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Sep 9 '14 at 23:32









            ePanditePandit

            790156




            790156













            • Here is an improved version including a gutter: gist.github.com/borisdiakur/9f9d751b4c9cf5acafa2

              – borisdiakur
              Nov 12 '15 at 22:38



















            • Here is an improved version including a gutter: gist.github.com/borisdiakur/9f9d751b4c9cf5acafa2

              – borisdiakur
              Nov 12 '15 at 22:38

















            Here is an improved version including a gutter: gist.github.com/borisdiakur/9f9d751b4c9cf5acafa2

            – borisdiakur
            Nov 12 '15 at 22:38





            Here is an improved version including a gutter: gist.github.com/borisdiakur/9f9d751b4c9cf5acafa2

            – borisdiakur
            Nov 12 '15 at 22:38


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f192437%2fcase-sensitive-searches-in-google-chrome%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

            VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

            Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...