Regular Expressions 101

Library entries

10
javascript

Full url parse, domain, path, params

no description available
Submitted by anonymous - 8 years ago
8
javascript

UUID

no description available
Submitted by anonymous - 9 years ago
8
javascript

money: either 0 or 2 dp

no description available
Submitted by anonymous - 8 years ago
7
javascript

Match text (not within html tag)

no description available
Submitted by Moistly - 8 years ago
7
javascript

simple email

no description available
Submitted by anonymous - 8 years ago
7
javascript

Date and time format - ISO 8601

Matches ISO 8601 date formats
Submitted by Ettienne - 7 years ago
6
javascript

Password

no description available
Submitted by anonymous - 10 years ago

Get path from any text

Vote

7

Regular Expression
pcre2

/
(?<opening>\b(?<montage>[a-zA-Z]:[\/\\])|[\/\\][\/\\](?<!http:\/\/)(?<!https:\/\/)(?>[?.][\/\\](?:[^\/\\<>:"|?\n\r ]+[\/\\])?(?&montage)?|(?!(?&montage)))|%\w+%[\/\\]?)(?:[^\/\\<>:"|?\n\r ,'][^\/\\<>:"|?\n\r]*(?<![ ,'])[\/\\])*(?:(?=[^\/\\<>:"'|?\n\r;, ])(?:(?:[^\/\\<>:"|?\n\r;, .](?: (?=[\w\-]))?(?:\*(?!= ))?(?!(?&montage)))+)?(?:\.\w+)*)|(?:'(?&opening)(?=.*'\W|.*'$)(?:[^\/\\<>:'"|?\n\r]+(?:'(?=\w))?[\/\\]?)*')|"(?&opening)(?=.*")(?:[^\/\\<>:"|?\n\r]+[\/\\]?)*"
/
g

Description

Loading markdown...
Submitted by nitrateag - 4 months ago