Regular Expressions 101

Sponsors

Library entries

1
pcre

zohar look

for 8 tracks
Submitted by avner - 8 years ago
1
pcre

/The.+Knick.+1x.+720p.+/i

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

Stackoverflow

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

hs

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

congratulation

very nice helper
Submitted by fred - 8 years ago
1
pcre

Guckst du!

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

foo

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

sort -t "," -k4,4 -k1n,1 file_name

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

Currency Amount

Format: x0.00 Valid: 13.37 4.20 1.00...
Submitted by anonymous - 8 years ago
1
pcre

кааа

ввв
Submitted by в - 8 years ago
0
pcre

Scrape SRC

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

http

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

IPv4

no description available
Submitted by Jorge C. - 8 years ago
3
pcre

youtube id match

youtube id 17 matches
Submitted by Wiliam Castilhos, Ramon Barros - 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