About 14,000 results
Open links in new tab
  1. String.prototype.match () - JavaScript | MDN - MDN Web Docs

    Jul 10, 2025 · Examples Using match () In the following example, match() is used to find "Chapter" followed by one or more numeric characters followed by a decimal point and numeric character zero …

  2. JavaScript String match () Method - W3Schools

    Regular Expression Search and Replace can be done with different methods. These are the most common: string.match() is an ECMAScript1 (JavaScript 1997) feature. It is supported in all browsers:

  3. Check whether a string matches a regex in JS - Stack Overflow

    Here's an example that looks for certain HTML tags so it's clear that /someregex/.test() returns a boolean: Remember to indicate ^ for beginning of the string and $ for the end, if you want to test the …

  4. JavaScript Regular Expressions (RegExp) Examples

    Aug 5, 2025 · Regular Expressions in JavaScript provide robust pattern-matching capabilities that are useful for validating input, searching and replacing text, and more. Here, we will explore various …

  5. JavaScript Regex match (): Match a String Against ... - JavaScript Tutorial

    In this tutorial, you'll learn about the JavaScript match () method to match a string against a regular expression.

  6. Guide to Mastering JavaScript Regex Match with Examples

    Sep 3, 2025 · Learn how to use JavaScript regex match with examples. Master text validation, searching, and manipulation using regex patterns effectively.

  7. How to Check if a String Fully Matches a Regex in JavaScript: Using ...

    Nov 22, 2025 · Regular expressions (regex) are a powerful tool in JavaScript for pattern matching, validation, and text manipulation. Whether you’re validating user input (e.g., emails, phone numbers), …

  8. Search/match with Regular expressions - javascript-tutorial.com

    At this point in the tutorial, we have talked about what regular expressions are, how they can act differently based on the options (flags) you specify, and we have even seen a couple of basic …

  9. Regular Expressions (RegEx) in JavaScript – A Handbook for Beginners

    Feb 27, 2024 · This comprehensive guide will walk you through the fundamentals of regular expressions in JavaScript, including how to create and use them, their special characters, flags, and practical …

  10. JavaScript Regular Expressions - W3Schools

    In a regular expression an alternation is denoted with a vertical line character |. An alternation matches any of the alternatives separated with |. A global search for the alternatives (red|green|blue): let text …