Regular Expressions 101

Sponsors

Library entries

-2
pcre

last, first middle name parser

no description available
Submitted by anonymous - 8 years ago
2
python

Find any digits in string

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

eee

eee
Submitted by eee - 8 years ago
0
pcre

test

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

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

KZ phone regexp

Regexp for kz website mask "+7(999) 999-99-99"
Submitted by Iden - 8 years ago
1
python

Inverse Match

inverse match letters, numbers, and underscores
Submitted by anonymous - 8 years ago
0
pcre

fsd

fsdfsd
Submitted by anonymous - 8 years ago
1
javascript

Get the extension of file

Get the extension of file
Submitted by Taffarel Xavier - 8 years ago
1
javascript

Get extension of an file

Get extension of an file.
Submitted by Taffarel Xavier - 8 years ago
0
pcre

select html paragraph tags

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