• PSA: Firefox Control+F regex find a or b or c (using match diacritics) a|b|c

    From Maria Sophia@mariasophia@comprehension.com to alt.comp.software.firefox on Fri Jul 24 22:13:55 2026
    From Newsgroup: alt.comp.software.firefox

    PSA:
    Firefox Control+F regex find a or b or c (using match diacritics) a|b|c
    So that everyone benefits from every thread, please add useful searches.

    Today I needed to search a web page for IPv4 addresses, MAC addresses, or UUIDs & I found that Firefox search can easily handle regular expressions.
    ([0-9]{1,3}\.){3}[0-9]{1,3}|([A-Fa-f0-9]{2}:){5}[A-Fa-f0-9]{2}|[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}

    So, as is my wont, I figured I'd create a quick cheat sheet for others
    to benefit from, where they can keep in their handy App Paths launcher.
    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\ff.exe
    ff.exe=C:\path-to\ff.txt

    To bring that up, you just click the runbox in the taskbar and type:
    ff

    Here are related contents recently added to my Firefox cheat sheets:
    1. Control F
    2. [x]Match Diacritics
    3. a|b|c

    Overall, Firefox regex supports:
    a. Regex OR patterns -> a|b|c
    b. Regex alternation -> the | operator
    c. Regex wildcards -> .*
    d. Regex word boundaries -> \bword\b
    e. Regex optional characters -> colou?r
    f. Regex character classes -> [0-9], [A-Za-z]
    g. Regex lookaheads -> (?=.*error)(?=.*timeout)
    h. Regex grouping

    For example, we can combine patterns, e.g.,
    (red|blue) car

    Find cat or dog, but NOT "catalog" or "dogma" :
    \bcat\b|\bdog\b

    Find red, blue, or green as standalone words:
    \b(red|blue|green)\b

    Find variations of a word
    colou?r

    Find error followed by anything, then failed:
    error.*failed

    Find user followed by a number:
    user[0-9]+

    Find any 3-letter word starting with "c":
    c[a-z]{2}

    Find lines containing both "error" & "timeout" (order doesn't matter):
    (?=.*error)(?=.*timeout)
    Note: This works because Firefox's regex engine supports lookaheads.

    Find HTTP, HTTPS, or HTTP/2:
    https?|http/2

    Find version 1, version 2, or version 3:
    version (1|2|3)

    Find "out of memory", "disk full", or "permission denied":
    out of memory|disk full|permission denied

    Find "login failed" or "authentication error":
    login failed|authentication error

    Note that Firefox remembers the regex toggle per session.
    --
    Here on Usenet each of us have decades of experience setting up our devices. --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Maria Sophia@mariasophia@comprehension.com to alt.comp.software.firefox on Fri Jul 24 22:20:11 2026
    From Newsgroup: alt.comp.software.firefox

    Please ignore. I accidentally sent it w/o full testing.
    Ignore this thread. Apologies. It wasn't ready for prime time.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Maria Sophia@mariasophia@comprehension.com to alt.comp.software.firefox on Fri Jul 24 23:05:12 2026
    From Newsgroup: alt.comp.software.firefox

    https://support.mozilla.org/en-US/kb/search-contents-current-page-text-or-links --- Synchronet 3.22a-Linux NewsLink 1.2