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
c u
s
c s
e
c e
r
c r
wuser
var_nameuser
worduser
alphanumericuser
@
c   
l
c l
o
c o
c
c c
a
c a
l
c l
h
c h
o
c o
s
c s
t
c t
wlocalhost
var_namelocalhost
wordlocalhost
alphanumericlocalhost
emailuser@localhost
_
c _
ws_
[
   [
2
     
      
      
0
     
      
      
2
     
      
3
     
      
      
      
      
      
real_number   
alphanumeric2023
year2023
-
c -
0
     
      
8
     
      
      
      
real_number   
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: .*?(.).*?([)([0-9]+(,[0-9]{3})*(\.[0-9]+)?).*?([0-9]+(,[0-9]{3})*(\.[0-9]+)?)

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