Regular Expressions 101

Sponsors

Library entries

1
pcre2

Nitroflare ID

https://nitroflare.com/view/845F2436715ASF5/XUYZ.zip
Submitted by anonymous - a year ago
1
pcre2

Nitroflare v2

Extract ID
Submitted by anonymous - a year ago
1
pcre2

sdfsf

sdf
Submitted by dsf - a year ago
1
pcre2

notlike

notlike
Submitted by anonymous - a year ago
1
pcre2

All digit must be number

All digit must be number
Submitted by anonymous - a year ago
1
pcre2

Schuljahr

Akzeptiert Schuljahre wie 2021/22
Submitted by anonymous - a year ago
1
pcre2

shortcode wordpress

Wordpress shortcode regular expression
Submitted by selik - a year ago
1
pcre2

Persian words

Regex for find persian letters in a string
Submitted by Hamed Faryabi - 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 - 3 months ago