Regular Expressions 101

Library entries

5
pcre

Find All Python imports

no description available
Submitted by anonymous - 9 years ago
2
pcre

PAN verification regex

Regex to verify PAN in India
Submitted by Anirban - 9 years ago
1
pcre

Test

test
Submitted by royskatt - 9 years ago
1
pcre

input mandatory title

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

webongo

webongo test
Submitted by webongo - 9 years ago
1
pcre

search mailadress

no description available
Submitted by anonymous - 9 years ago
-2
pcre

get all href=()

no description available
Submitted by artyom lisovskij - 9 years ago
1
pcre

testmmoj

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