Regex Help

1. Enter the string that you want to use a regular expression on:


2. Select the elements that you want to extract to run regular expression generator:

u
     
s
     
e
     
r
     
      
      
      
      
@
     
l
     
o
     
c
     
a
     
l
     
h
     
o
     
s
     
t
     
      
      
      
      
email   
_
c _
ws_
[
c [
2
c 2
d2
month2
0
c 0
d
month02
2
c 2
d2
3
c 3
d3
month3
day23
w2023
int2023
real_number2023
alphanumeric2023
year2023
-
c -
0
c 0
d
8
c 8
d8
w08
int08
real_number08
alphanumeric08
day08
month08
-
c -
0
c 0
d
8
c 8
d8
w08
int08
real_number08
alphanumeric08
day08
month08
yyyy-mm-dd2023-08-08
]
c ]
square_brackets[2023-08-08]
$
c $
_
c _
ws_
p
c p
i
c i
n
c n
g
c g
wping
var_nameping
wordping
alphanumericping
_
c _
ws_
1
c 1
d1
month1
2
c 2
d2
month2
7
c 7
d7
month7
day27
w127
int127
alphanumeric127
.
c .
0
c 0
w
d
int
alphanumeric
day
decimal127.0
real_number127.0
.
c .
decimal.0
0
c 0
w
d
int
alphanumeric
day
.
c .
1
c 1
w1
d1
int1
alphanumeric1
day1
month1
decimal.1
real_number0.1
ip_v4127.0.0.1

Regex: ([a-zA-Z0-9_\-\.\+\^!#\$%&*+\/\=\?\`\|\{\}~']+@((?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.?)+|(\[([0-9]{1,3}(\.[0-9]{1,3}){3}|[0-9a-fA-F]{1,4}(\:[0-9a-fA-F]{1,4}){7})\])))

Passed Regular expression test

Matches:

3. Generated regular expression program that extracts the selected elements from the entered string:


Fatal error: Uncaught TypeError: Txt2Regex\CodeGen_All::__construct(): Argument #2 ($recognizer) must be of type Txt2Regex\RegexMatcher, null given, called in /home/txtweb/www/web/main/apps/regexhelp/regexhelp.class.php on line 300 and defined in /home/txtweb/www/web/main/apps/regexhelp/codegen/codegen_all.class.php:32 Stack trace: #0 /home/txtweb/www/web/main/apps/regexhelp/regexhelp.class.php(300): Txt2Regex\CodeGen_All->__construct() #1 /home/txtweb/www/web/main/apps/regexhelp/view.main.template.php(67): App\RegexHelp->viewLastRegexCodeOutput() #2 /home/txtweb/www/system/libs/schlix/app_basic.class.php(166): include('...') #3 /home/txtweb/www/web/main/apps/regexhelp/regexhelp.class.php(143): SCHLIX\cmsApplication_Basic->loadTemplateFile() #4 /home/txtweb/www/web/main/apps/regexhelp/regexhelp.class.php(361): App\RegexHelp->viewMainPage() #5 /home/txtweb/www/index.php(145): App\RegexHelp->Run() #6 /home/txtweb/www/index.php(174): Initialize() #7 {main} thrown in /home/txtweb/www/web/main/apps/regexhelp/codegen/codegen_all.class.php on line 32
Error in codegen_all.class.php at line 32: Uncaught TypeError: Txt2Regex\CodeGen_All::__construct(): Argument #2 ($recognizer) must be of type Txt2Regex\RegexMatcher, null given, called in /home/txtweb/www/web/main/apps/regexhelp/regexhelp.class.php on line 300 and defined in /home/txtweb/www/web/main/apps/regexhelp/codegen/codegen_all.class.php:32 Stack trace: #0 /home/txtweb/www/web/main/apps/regexhelp/regexhelp.class.php(300): Txt2Regex\CodeGen_All->__construct() #1 /home/txtweb/www/web/main/apps/regexhelp/view.main.template.php(67): App\RegexHelp->viewLastRegexCodeOutput() #2 /home/txtweb/www/system/libs/schlix/app_basic.class.php(166): include('...') #3 /home/txtweb/www/web/main/apps/regexhelp/regexhelp.class.php(143): SCHLIX\cmsApplication_Basic->loadTemplateFile() #4 /home/txtweb/www/web/main/apps/regexhelp/regexhelp.class.php(361): App\RegexHelp->viewMainPage() #5 /home/txtweb/www/index.php(145): App\RegexHelp->Run() #6 /home/txtweb/www/index.php(174): Initialize() #7 {main} thrown