Regular Expressions 101

Library entries

0
pcre

regex test

testing the string abc xyx 12 13 a a b
Submitted by Alien Coders - 9 years ago
0
pcre

Share?

Test
Submitted by test - 9 years ago
2
pcre

Regex Capture String

Capture out Parts using regular expressions
Submitted by Brandon - 9 years ago
0
pcre

asdfs

sfsdadf
Submitted by poter - 9 years ago
-2
pcre

1

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

Email validation

no description available
Submitted by tutsplus.com - 9 years ago
0
pcre

Match all html tags

no description available
Submitted by Kostas Trichas - 9 years ago
1
pcre

Get all HTML tag names

no description available
Submitted by Kostas Trichas - 9 years ago
1
pcre

Parse JSON key value

no description available
Submitted by Kostas Trichas - 9 years ago
0
pcre

Parse JSON key value pair

no description available
Submitted by Kostas Trichas - 9 years ago
0
pcre

url GET parameters

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

t

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

Get URL parameters

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

parse images

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