Myregextester.com is the premier online regular expressions tester that allows visitors to construct, test, and optimize regular expressions.

 Click here to manually set the number of rows for match/replacement textareas. Regex Cheat Sheet Regex Tutorials Regex Book

URL SOURCE:   FILE SOURCE:

MATCH PATTERN:

REPLACEMENT PATTERN:

OPERATION: # # USE .NET FLAGS: i
x
m
s
 Help SHOW MATCH ARRAY:    EXPLAIN:  OPTIMIZE:    SHOW CODE: PHP
ASP
VB.NET
C#.NET
Java
JS
DELIM: HIGHLIGHT MATCHES:      GEN SAMPLES:   
    Save example     Help     FROM: TO: 

PASSWORD RESTRICTIONS:

Allow only these characters:  (any character)  ]
At Least  Total Characters
No More Than   Total Characters
At Least  Lowercase Characters (a-z)
At Least  Uppercase Characters (A-Z)
At Least  Numeric Characters (0-9)
At Least  Special Characters in [^a-zA-Z0-9]  ]
Disallow sequential alphanumeric sequences of or more (i.e. 123... abc... ABC...)
Disallow repeating characters of or more (i.e. 11... aa... AA... %%...)

WORD LIST:



SOURCE TEXT:

HIGHLIGHTED MATCHES:

Select All (to copy etc.)
CAPTURE GROUPS Help
0


RESULTS:

Select All (to copy etc.)
Execution Time(sec.):
0.000016

Raw Match Pattern:
^(?P<mailbox>(?P<name_addr>(?P<display_name>(?<phrase>(?P<word>(?P<atom>(?P<CFWS>(?P<CFWS_1>(?P<FWS>(?:(?P<WSP>\\x20|\\x09)*|\\r\\n)?(?P>WSP)+)?(?P<comment>\\x28(?:(?P>FWS)?(?P<ccontent>(?P<ctext>((?![\\s()\\\\])[\\x01-\\x7f]))|(?P<quoted_pair>\\\\(?P<text>(?![\\n\\r])[\\x01-\\x7f]))|(?:\\x28(?:(?P>FWS)?(?P>ctext)|(?P>quoted_pair))(P>FWS)?\\x29)))*(P>FWS)?\\x29))*(?:(?P>CFWS_1)|(?P>FWS)))?(?P<atext>(?![\"()<>\\[\\]:;@\\\\,.])[\\x21-\\x7E])+(?P>CFWS)?)|(?P<quoted_string>(?P>CFWS)?\\x22(?:(?P>FWS)?(?P<qcontent>(?P<qtext>(?![\\t\\n\\r\\x20\\x22\\x5c])[\\x01-\\x7f])|(?P>quoted_pair)))*(?P>FWS)?\\x22(?P>CFWS)?))+))?(?<angle_addr>(?P>CFWS)?\\x3c(?P<addr_spec>(?P<local_part>(?P<dot_atom>(?P>CFWS)?(?P<dot_atom_text>(?P>atext)+(?:\\.(?P>atext)+)*)+(?P>CFWS)?)|(?P>quoted_string))@(?P<domain>(?P>dot_atom)|(?P<domain_literal>(?P>CFWS)?\\x5b(?:(?P>FWS)?(?P<dcontent>(?P<dtext>(?![\\t\\r\\n\\x20\\[\\]\\\\])[\\x01-\\x7F])|(?P>quoted_pair)))*(?P>FWS)?\\x5d(?P>CFWS)?)))\\x3e(?P>CFWS)?))|(?P>addr_spec))$

PHP Code Example:
 
<?php
$sourcestring="your source string";
preg_match('/^(?P(?P(?P(?(?P(?P(?P(?P(?P(?:(?P\\x20|\\x09)*|\\r\\n)?(?P>WSP)+)?(?P\\x28(?:(?P>FWS)?(?P(?P((?![\\s()\\\\])[\\x01-\\x7f]))|(?P\\\\(?P(?![\\n\\r])[\\x01-\\x7f]))|(?:\\x28(?:(?P>FWS)?(?P>ctext)|(?P>quoted_pair))(P>FWS)?\\x29)))*(P>FWS)?\\x29))*(?:(?P>CFWS_1)|(?P>FWS)))?(?P(?![\"()<>\\[\\]:;@\\\\,.])[\\x21-\\x7E])+(?P>CFWS)?)|(?P(?P>CFWS)?\\x22(?:(?P>FWS)?(?P(?P(?![\\t\\n\\r\\x20\\x22\\x5c])[\\x01-\\x7f])|(?P>quoted_pair)))*(?P>FWS)?\\x22(?P>CFWS)?))+))?(?(?P>CFWS)?\\x3c(?P(?P(?P(?P>CFWS)?(?P(?P>atext)+(?:\\.(?P>atext)+)*)+(?P>CFWS)?)|(?P>quoted_string))@(?P(?P>dot_atom)|(?P(?P>CFWS)?\\x5b(?:(?P>FWS)?(?P(?P(?![\\t\\r\\n\\x20\\[\\]\\\\])[\\x01-\\x7F])|(?P>quoted_pair)))*(?P>FWS)?\\x5d(?P>CFWS)?)))\\x3e(?P>CFWS)?))|(?P>addr_spec))$/x',$sourcestring,$matches);
echo "<pre>".print_r($matches,true);
?>
 

Matches Found:
NO MATCHES.