Regular Expressions 101

Library entries

1
javascript

Date checker for X values

Work in progress
Submitted by anonymous - 6 years ago
1
pcre

Youtube ID Extractor

no description available
Submitted by anonymous - 6 years ago
1
python

Basic DOI

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

Acts

Extract Act names from statements
Submitted by anonymous - 6 years ago

Extraneous slashes in pathnames

Vote

1

Regular Expression
pcre

~
(?P<leading> (?<=^/) /+ (?# Matches extra slashes after the first one) ) | (?P<middle> (?<!^) (?<=/) /+ (?!$) (?# Matches extra slashes in the middle of the path) ) | (?P<trailing> (?<!^) /+ (?=$) (?# Matches all trailing slashes) )
~
gmxX

Description

Loading markdown...
Submitted by anonymous - 5 years ago