Regular Expressions 101

Sponsors

Library entries

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
3
pcre

hj

hj
Submitted by hj - 7 years ago
3
pcre

currency

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

Currencies

Matches numbers formatted like currencies
Submitted by elgehelge - 7 years ago
3
pcre

Perl

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

Forum user validation

Pedro al DAMS
Submitted by giacomo - 7 years ago
3
pcre

Nombres 4 chiffres

Nombres 4 chifres
Submitted by EA - 7 years ago
3
pcre

Shortcode parser

Parse shortcodes, its attributes values and html
Submitted by anonymous - 7 years ago
3
pcre

POST OFFICE BOX

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

ln -l linux parse

parse linux ln -l output command
Submitted by guignol95 - 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