Regular Expressions 101

Sponsors

Library entries

4
pcre

utf-8 hex.

utf-8 hex. code armenian. Firs character regexp
Submitted by Dyxx - 8 years ago
4
pcre

uri parser

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

Phone number

no description available
Submitted by Mark Landry - 7 years ago
4
pcre

Jeff Test

Valid and Invalid emails
Submitted by anonymous - 7 years ago
4
python

import url image

import url image
Submitted by bartimeys - 7 years ago
4
pcre

kenteken validator

validator voor kenteken vb: 11-AA-BB
Submitted by Senne Root - 7 years ago
4
pcre

Mask credit card

no description available
Submitted by Albert Paris - 7 years ago
4
pcre

Version Matcher

Matches version strings.
Submitted by anmols - 7 years ago

Matching balanced parens, brackets, and braces

Vote

5

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 - 9 years ago