Free online utilities to convert,
calculate, and transform.
 

Regular Expression Tester

Test your regular expression using the inp




Regex Tester Online

Regular expressions, often abbreviated as regex, are a powerful tool used across various programming languages and applications to search, match, and manipulate text based on specific patterns. They provide a concise and flexible means for identifying strings of text, such as particular characters, words, or patterns of characters.

A regular expression is a sequence of characters that forms a search pattern. It can be used for performing complex text searches, replacements, and more. The pattern is used by string-searching algorithms for "find" or "find and replace" operations on strings, or for input validation. Regex patterns are written in a specialized syntax held in a standard by many programming languages and tools.

The input pattern allows the introduction of regular expressions that get tested agains the text to match. If the pattern is matched, one or more matches are displayed on the output, each seperated per line.

Examples of such expressions include:

  • [A-Z0-9._%+-]+ matches one or more uppercase letters, digits, dots, underscores, percent signs.
  • [A-Z]{2,} matches two or more uppercase letters in the top-level domain portion of the email address.
  • /\b and \b/ denote word boundaries, which ensure that the match is not part of a larger word.
  • ^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$ matches email addresses.

There are many good references for JavaScript regular expressions including: MDN's JavaScript Regular Expressions, and Regular-Expressions.info.


Related Utilities


Feedback

Help us improve this page by providing feedback:


Share with