Regular Expressions 101

Sponsors

Library entries

3
pcre

UUID

no description available
Submitted by Jason - 9 years ago
3
pcre

youtube id match

youtube id 17 matches
Submitted by Wiliam Castilhos, Ramon Barros - 8 years ago
3
pcre

Alternative Capture Country Codes

no description available
Submitted by Branden - 8 years ago
3
pcre

^.*(\/Summary\/).*(chelaxe\.ru).*$

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

split sentence regex

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

images url match in text

no description available
Submitted by Redfern.89 - 8 years ago
3
pcre

Div content

no description available
Submitted by mohammadsaleh - 8 years ago
3
pcre

Cisco ASA

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 - 9 years ago