Coders Tool
    • Sitemap
    • SEO
      • Text Content Tools
      • SEO Tools
      • Link Building Tools
      • Web Code Tools
      • Security Tools
      • Web Page Tools
      • Website Tools
    • Coding
      • Test Data Tools
      • Time Tools
      • Network Tools
      • Designer Tools
      • Color Conversion Tools
      • Data Format Conversion Tools
      • Unicode UTF Converter
      • Image Editing Tools
    • Programing
      • Database Tools
      • Encode Decode Tools
      • Programmer Calculator
      • Developer Tools
      • Sorting Algorithms
      • Code Editor Tools
      • Encryption Tools
      • Base64 Tools
    • General
      • Team Building
      • Unit Converters
      • Charting Tools
      • Cheat Sheets
      • Financial Tools
    • Tutorials
      • MCQ Quiz
      • Snippets
    • Blog

    …

    Match Regex Pattern

    • Dev

    Scans string matches regular expression pattern. Find and test JavaScript regex.


    Try These Related Tools
    Unicode Converter
    Javascript Formatter
    Online HTML Editor
    Regex Visualizer

    …

    What are Regex Patterns?

    Regular expressions are patterns used to match character combinations in string. When searching for a match that requires more than a direct match, such as finding one or more b's or white space, you can include special characters in the pattern.

    For instance, the pattern /ab*c/ can be used to match a single "a" followed by zero or more "b"s, then "c": the * after "b" denotes "0 or more occurrences of the preceding item."

    Using special characters

    When searching for a match that requires more than a direct match, you can include special characters in the pattern, such as locating one or more b's or white space.

    For example, you could use the pattern /ab*c/ to match a single "a" followed by zero or more "b"s followed by "c": the * after "b" implies "0 or more occurrences of the preceding item." In the string "cbbabbbbcdebc", this pattern will match the substring "abbbbc."

    Regular Expressions Cheat Sheet

    [abc] A single character of: a, b, or c
    [^abc] Any single character except: a, b, or c
    [a-z] Any single character in the range a-z
    [a-zA-Z] Any single character in the range a-z or A-Z
    ^ Start of line
    $ End of line
    \A Start of string
    \z End of string
    . Any single character
    \s Any whitespace character
    \S Any non-whitespace character
    \d Any digit
    \D Any non-digit
    \w Any word character (letter, number, underscore)
    \W Any non-word character
    \b Any word boundary
    (...) Capture everything enclosed
    (a|b) a or b
    a? Zero or one of a
    a* Zero or more of a
    a+ One or more of a
    a{3} Exactly 3 of a
    a{3,} 3 or more of a
    a{3,6} Between 3 and 6 of a

    options: i case insensitive m make dot match newlines x ignore whitespace in regex o perform #{...} substitutions only once

    Java is to JavaScript what car is to Carpet.

    Chris Heilmann

    …

    CodersTool Categories
    Text Content Tools
    SEO Tools
    Link Building Tools
    Web Code Tools
    Security Tools
    Web Page Tools
    Website Tools
    Test Data Tools
    Time Tools
    Network Tools
    Designer Tools
    Color Conversion Tools
    Data Format Conversion Tools
    Unicode UTF Converter
    Image Editing Tools
    Database Tools
    Encode Decode Tools
    Programmer Calculator
    Developer Tools
    Sorting Algorithms
    Code Editor Tools
    Encryption Tools
    Base64 Tools
    Unit Converters
    Charting Tools
    Cheat Sheets
    Financial Tools
    Coders Tool

    Free world-class online tool for all. We provide the opportunity to progress through technology & develop tomorrow’s skills.

    Get Chrome Extension
    Links
    • Site Map
    • Contact
    • About
    • Blog
    Support Us
    If you find this tool helpful, please share it with others.
    Buy Us A
    Follow Us
    © 2025 Coders Tool. All rights reserved. | Privacy | Terms of Use |