Save & Share

Flavor

  • PCRE2 (PHP)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java
  • .NET 7.0 (C#)
  • Rust
  • PCRE (Legacy)
  • Regex Flavor Guide

Function

  • Match
  • Substitution
  • List
  • Unit Tests
Sponsors
There are currently no sponsors. Become a sponsor today!
An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.
  • All Tokens
  • Common Tokens
  • General Tokens
  • Anchors
  • Meta Sequences
  • Quantifiers
  • Group Constructs
  • Character Classes
  • Flags/Modifiers
  • Substitution
  • A single character of: a, b or c
    [abc]
  • A character except: a, b or c
    [^abc]
  • A character in the range: a-z
    [a-z]
  • A character not in the range: a-z
    [^a-z]
  • A character in the range: a-z or A-Z
    [a-zA-Z]
  • Any single character
    .
  • Alternate - match either a or b
    a|b
  • Any whitespace character
    \s
  • Any non-whitespace character
    \S
  • Any digit
    \d
  • Any non-digit
    \D
  • Any word character
    \w
  • Any non-word character
    \W
  • Non-capturing group
    (?:...)
  • Capturing group
    (...)
  • Zero or one of a
    a?
  • Zero or more of a
    a*
  • One or more of a
    a+
  • Exactly 3 of a
    a{3}
  • 3 or more of a
    a{3,}
  • Between 3 and 6 of a
    a{3,6}
  • Start of string
    ^
  • End of string
    $
  • A word boundary
    \b
  • Non-word boundary
    \B

Regular Expression
Processing...

Test String

Code Generator

Generated Code

$re = '/conf\_ant|3A7646B69653A6C42F3C|PV00476|66A2821F41B07B6B6967|32589E1B502C45A302F8|PV00011|0572529DF84599EA2936|9AFFA57D39B630747A7F|5EB08005A409D7F22880|PV00501|PV00511|DFA1AE98D99BB48FAEEC|PV00521|B8F3BD0482BEBA74A8A3|PV00496|PV00016|BA84ECF461B6ADC35A82|E3770FFE26837A58B836|3C246C1CAC013D3E04C6|PV00491|PV00516|PV00015|4A7C3D1624F700B376B5|PV00018|03057CB2398CD2358280|D20058AAD073D3C61DEF|PV00506|910AD547911EFC8D948F|368DC34AC8858C004B1A|4C398C7A2A89C9A49F52|E46B2628A3B0C390D0CA|4F7435C1276A54AA6425|BA6495A0EAB3FF511E8A|58A4DDC1726763732B68|5887C4372FE18F3867B9|PV00486|8D611DB5FB44C87D34F3|PV00014|PV00481|PV00013|7DD06A2BDCDFC97BC3DA|PV00502|PV00494|PV00485|PV00495|PV00019|PV00505|PV00500|PV00504|PV00020|PV00012|PV00479|PV00477|PV00522|PV00520|32173ED68B6BD2109A58|910232BL01|PV00514|PV00499|PV00510|1738D07792B58A341CEC|DE9C4645EC42F4759248|PV00507|PV00492|PV00475|8F383DFA0DA1E2FB19F0|PV00487|C6201DD0F6C1444681B8|42DB4A641EEA7CD2B5A5|PV00017|PV00512|8BC84A761893030A3E0D|641AD1E9F52AC00F3BCE|C24B4693316F13915AF0|258A25A9B2918ECD7E36|BE19B262FB84BCFD5268|CDBD9A6E0DF89A1E4185|EC16F95C76BEC974DDC0|PV00490/m'; $str = ''; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); // Print the entire match result var_dump($matches);

Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for PHP, please visit: http://php.net/manual/en/ref.pcre.php