Regular Expressions 101

Sponsors

Library entries

3
pcre

Select all number greater than 36

no description available
Submitted by Mansoor - 7 years ago
3
pcre

coffeescript operator

no description available
Submitted by anonymous - 7 years ago
3
pcre

Remove br tags inside anchor tags

no description available
Submitted by anonymous - 7 years ago
3
pcre

JWT Validation

Validate a Json Web Token (JWT).
Submitted by Erik Maas - 7 years ago
3
pcre

TTML time expression offset-time

no description available
Submitted by ovvland - 7 years ago
3
pcre

apache access log

parse the apache access log
Submitted by pagu - 7 years ago
3
pcre

Active Affiliate, Contractor or Employee

no description available
Submitted by MR - 7 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