Regular Expressions 101

Sponsors

Library entries

0
pcre

File name

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

guto

gutoregex
Submitted by guto - 8 years ago
2
pcre

Gentoo atom parsing

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

dropping first digit (2) andy advice?

\_\d(.+) for _2015041122
Submitted by jbt - 8 years ago
0
pcre

test

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

year match

2010-2012
Submitted by tazbir - 8 years ago
1
pcre

decimal or not number

acepts 1.000 and 1000
Submitted by jvs - 8 years ago
1
pcre

regex

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

yous

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

Adyen reason when AUTHORISATION success

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

remove comments from php code

no description available
Submitted by anonymous - 8 years ago

How to document a Regex? Example 2

Vote

1

Regular Expression
pcre

/
((?# Capturing group for the type name) \/+(?# Start with / or // ) [^\/\[\]]+(?# Type name exclusing start of attribute and next type) (?:(?# Non-capturing group for the attribute) \[(?# Start of an attribute) [^\]']*(?# Anything but end of attribute or start of string) (?:(?# non-capturing group for string) '(?# string start) [^']*(?# anything inside the string, except end of string) '(?# string end) )(?# end of string group) \](?# end of attribute) )?(?# Attribute can occur 0 or one time) )+(?# Type can occur once or many times)
/

Description

Loading markdown...
Submitted by Thomas - 8 years ago