Regular Expressions 101

Sponsors

Library entries

1
pcre

Date range match

This is not my creation, it is from a github repor
Submitted by Saji N - 8 years ago
1
javascript

date validation

Validation for date 2013.12.24 14:50
Submitted by axelprog - 8 years ago
1
python

Brazilian phone numbers

no description available
Submitted by rafaelverger - 8 years ago
-2
javascript

Comma-separated numbers with ranges

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

soap envelope regexp

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

test123

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

SickRage

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

Un-titled

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

Nada

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

Post

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

Failure case for repeated strings

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