Regex Explorer is the largest regular expression database for regex pattern and matches containing searchable and filterable records for many different languages

Phone number

match brackets outside quotes

Strip multi-line (star) comments from JavaScript, while leaving any CDATA sections intact.

This regular expression removes multi-line (star) comments from JavaScript, while leaving any CDATA sections intact. Use the global (g) modifier to match them all (if you plan to use PHP's preg_replace, the g modifier is not necessary), and use the (s) modifier to make dots match newlines (this will be required in for using with PHP's preg_replace function). This regular expression does not exhaust all possibilities (such as a space between the opening or closing star comment and the CDATA tag), but it functions if the style guidelines are of the more popularized variety.

Matching balanced parens, brackets, and braces

Match nth occurence of pattern

Match nth occurence of the patterns in the inner parenthesis. Put nth that you want to match in the curly braces (here, {3}).

Typescript - /// <reference path="..."/> Expression

Finds Typescript's reference path syntax.

Credit Card Number

Validates Credit Card Numbers of different type. Supports Visa, MasterCard, American Express, Diners Club, Discover and JCB Taken from If you want to support only a particular type, customise it based on following. ^(?:4[0-9]{12}(?:[0-9]{3})? # Visa | 5[1-5][0-9]{14} # MasterCard | 3[47][0-9]{13} # American Express | 3(?:0[0-5]|[68][0-9])[0-9]{11} # Diners Club | 6(?:011|5[0-9]{2})[0-9]{12} # Discover | (?:2131|1800|35\d{3})\d{11} # JCB )$

Variable name of code

To get a variable name from a source code: The variable name is before the '=' (equal sign) This is the way to detect. Problem: 1. Only 1 variable can get from 1 line. 2. Unfortunately, this can get variable between after "//" and before ";" too. I made this for fake script debugger. Just get variable from source code and put that after last semicolon with so much tab and messagebox code for every line.

MAC address

a mac address separated by dashes or colons.

Complete imgur link regex

This regex grabs all kinds of imgur links and groups them in meaningful names aswell. This way you have full flow-control in your python-scripts.