Regular Expressions 101

Library entries

0
pcre2

google video 域名

google video 域名
Submitted by anonymous - a day ago
0
pcre2

URL Cleaner

It just cleans up urls.
Submitted by anonymous - a day ago
0
pcre2

silly radio

nuh uh
Submitted by anonymous - a day ago
0
pcre2

Are* Device

Device model Extraction from our client Are*
Submitted by anonymous - a day ago
0
pcre2

Codegolf stay away from zero

Codegolf submission
Submitted by PlaceReporter99 - 2 days ago
0
pcre2

Estrazione numeri scheda mail generali

Come da titolo
Submitted by anonymous - 2 days ago
0
pcre2

IIC++ Script Parsing Regex

Regex for parsing IIC++ script.
Submitted by Vu Tung Lam - 2 days ago
0
dotnet

for killerswim

a
Submitted by anonymous - 2 days ago
0
pcre2

入门学习

Submitted by anonymous - 3 days ago
0
pcre2

exclude square brackets

exclude square brackets
Submitted by tarek - 4 days ago
0
pcre

strip host port

removes port number from URL
Submitted by pc - 6 days 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