Regular Expressions 101

Library entries

8
pcre

Date time Advanced

no description available
Submitted by Mr.Neutro - 9 years ago
8
pcre

Alphanumeric and Spaces

Alow alphanumeric characters and spaces
Submitted by JTN - 8 years ago
8
pcre

If-Then-Else Conditionals

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

Fiddler raw body to PHP array

no description available
Submitted by garsax - 7 years ago
8
pcre

Max - URL Extract

no description available
Submitted by Ayush - 7 years ago
7
pcre

rsyslog test

global modifier
Submitted by dtmland - 8 years ago
7
pcre

Any positive integer except zero

no description available
Submitted by Harsh - 8 years ago
6
pcre

ID003 device info

no description available
Submitted by sasjaq - 9 years ago
6
pcre

json

{1:aa,2:bb,3:"aa:bb"}
Submitted by suat & umut - 9 years ago
6
pcre

Extract style

no description available
Submitted by anonymous - 8 years ago

Matching balanced parens, brackets, and braces

Vote

6

Regular Expression
pcre

/
# match a body pattern alone on a line ^\g<body>$ # we'll use (?<name>...){0} to define the pattern \g<name> # without having to match the pattern at the current position # a body pattern matches (?<body> # a sequence of (?: [^\[\]{}()\n] # non-delimiters | \g<parens> # parenthesized pattern | \g<square_brackets> # bracketed pattern | \g<curly_braces> # braced pattern )* ){0} # a parenthesized pattern matches (?<parens> \( # an open paren \g<body> # a valid body \) # a close paren ){0} # a bracketed pattern matches (?<square_brackets> \[ # an open square bracket \g<body> # a valid body \] # a close square bracket ){0} # a braced pattern matches (?<curly_braces> \{ # an open curly brace \g<body> # a valid body \} # a close curly brace ){0}
/
gmx

Description

Loading markdown...
Submitted by Noah Luck Easterly - 10 years ago