Regular Expressions 101

Sponsors

Library entries

1
pcre

reference

reference pattern checking
Submitted by karthikeyan - 8 years ago
-2
pcre

regex demo

no description available
Submitted by anonymous - 8 years ago
1
pcre

tr

no description available
Submitted by anonymous - 8 years ago
0
pcre

UUID regex

no description available
Submitted by santisaez - 8 years ago
1
pcre

Route Regex

no description available
Submitted by anonymous - 8 years ago
1
pcre

VNC-58

no description available
Submitted by anonymous - 8 years ago
1
pcre

My test

My test
Submitted by Mike - 8 years ago
1
pcre

attributeselector

no description available
Submitted by anonymous - 8 years ago
0
pcre

only pixel set font-size

no description available
Submitted by amaroyche - 8 years ago
1
pcre

qwe

qweqwe
Submitted by qwe - 8 years ago
0
pcre

Cfmail replace

Replace cfmail with cfsets
Submitted by Akan - 8 years ago
0
pcre

urls and emails

no description available
Submitted by Matthew O'Riordan - 8 years ago
0
pcre

Four e/E's no p's

no description available
Submitted by CommuSoft - 8 years ago
0
pcre

GUID

Dection of GUID
Submitted by anonymous - 8 years ago
0
pcre

xD

no description available
Submitted by anonymous - 8 years ago

Command handling

Vote

4

Regular Expression
pcre

/
#Command handler #=============== #Start of the line ^ #Match the command name (?<cmd>[\w\d\-\_\?]+) #Catch as many parameters as possible (?<params> ( \ + (?<pre>[^\-\\\/\w\d\s\n\r]?) [^\"]*\k<pre> )* )? #Catch as many switches as possible and save them into group (?<switches> ( \ + #Switch starts with -- or - or / (?:\-\-|\-|\/) #Gotcha! [\w\d\_]+ )* )? #At the end of the line can be some spaces \ *$ #End of the line
/
gmx

Description

Loading markdown...
Submitted by anonymous - 8 years ago