About 373,000 results
Open links in new tab
  1. Regular expressions - JavaScript | MDN - MDN Web Docs

    Jan 24, 2025 · This chapter describes JavaScript regular expressions. It provides a brief overview of each syntax element. For a detailed explanation of each one's semantics, read the regular expressions reference.

  2. JavaScript RegExp Object - W3Schools

    In JavaScript, the RegExp object is a regular expression object with predefined properties and methods. The test() method is a RegExp expression method. It searches a string for a pattern, and returns true or false, depending on the result. The …

  3. Regular expression syntax cheat sheet - JavaScript | MDN - MDN Web Docs

    Oct 28, 2024 · This page provides an overall cheat sheet of all the capabilities of RegExp syntax by aggregating the content of the articles in the RegExp guide. If you need more information on a specific topic, please follow the link on the corresponding heading …

  4. JavaScript RegExp (Regular Expression) - GeeksforGeeks

    Dec 3, 2024 · A regular expression is a special sequence of characters that defines a search pattern, typically used for pattern matching within text. It's often used for tasks such as validating email addresses, phone numbers, or checking if a string contains certain patterns (like dates, specific words, etc.).

  5. JavaScript RegExp Reference - W3Schools

    A regular expression is a pattern of characters. The pattern is used for searching and replacing characters in strings. The RegExp Object is a regular expression with added Properties and Methods.

  6. JavaScript Regular Expressions

    In JavaScript, regular expressions are objects. JavaScript provides the built-in RegExp type that allows you to work with regular expressions effectively. Regular expressions are useful for searching and replacing strings that match a pattern.

  7. JavaScript Regex - Programiz

    In JavaScript, you can use regular expressions with RegExp() methods: test() and exec(). There are also some string methods that allow you to pass RegEx as its parameter. They are: match() , replace() , search() , and split() .

  8. Regular Expressions (RegEx) in JavaScript – A Handbook for …

    Feb 27, 2024 · Regular expressions, also known as regex, are powerful tools for pattern matching and text manipulation. Whether you're validating user input, extracting data from strings, or performing advanced text processing tasks, understanding regex is essential for developers.

  9. Regular Expressions in JavaScript - Tutorial Republic

    Defining Regular Expressions. In JavaScript, regular expressions are represented by RegExp object, which is a native JavaScript object like String, Array, and so on. There are two ways of creating a new RegExp object — one is using the literal syntax, and the other is using the RegExp() constructor.

  10. How to Use Regular Expressions in JavaScript – Tutorial for …

    Aug 16, 2022 · Regular expressions are patterns that allow you to describe, match, or parse text. With regular expressions, you can do things like find and replace text, verify that input data follows the format required, and and other similar things.

  11. Some results have been removed