Regular Expressions 101

Sponsors

Library entries

2
pcre2

Check Phone numbers

Other patterns
Submitted by https://joserobinson.com - 9 months ago
2
pcre2

Grabify URL Detector

Detects any Grabify IP tracker links
Submitted by ShadowNox - 9 months ago
2
pcre2

UUID 4

Detects any UUID 4 strings
Submitted by ShadowNox - 9 months ago
2
pcre2

Delete hour range

Select duplicate a.m. - p.m range
Submitted by profeivan - 4 months ago
3
pcre2

Email

email format control
Submitted by ahmetbarut - a year ago
3
pcre2

example

example
Submitted by anonymous - a year ago
4
pcre2

CloudFlare

Cloud Flare
Submitted by anonymous - a year ago

Get path from any text

Vote

5

Regular Expression
pcre2

/
((?:(?# path without "" )(?<opening>(?# 'C:/', '//', '//./<UNC/C:>', '//?/<UNC/C:>' or '%VariableWindows%')(?<UNCPrefix>[\/\\][\/\\][?.][\/\\](?:UNC[\/\\])?)?(?<montage>\b[a-zA-Z]:[\/\\])|(?:(?:(?&UNCPrefix))|(?:[\/\\][\/\\](?!(?&montage))))|(?:%\w+%[\/\\]?))(?:(?# directory btw // )[^\/\\<>:"|?\n\r ][^\/\\<>:"|?\n\r]*(?<![ ])[\/\\])*(?:(?#we search for fileName only if next character is pathFriendly)(?=[^\/\\<>:"'|?\n\r;, ])(?:(?#name file ? dir ?)(?:[^\/\\<>:"|?\n\r;, .](?: (?=\w))?(?:\*(?!= ))?(?!(?&montage)))+)?(?:(?#extention)\.\w+)*))|(?:(?# path quoted "" or '' )["'](?&opening)(?=.*?["'])(?:[^\/\\<>:'"|?\n\r]+[\/\\]?)+?["']))
/
g

Description

Loading markdown...
Submitted by nitrateag - 25 days ago