Regular Expressions 101

Sponsors

Library entries

0
pcre2

TXN ID

VIL ID
Submitted by anonymous - 5 days ago
0
dotnet

BI/CC

Verificação do número de BI/CC
Submitted by anonymous - 5 days ago
0
pcre2

Slurs

Not made with ill intentions.
Submitted by anonymous - 6 days ago
0
java

partnkey value

Extract value partn_key
Submitted by anonymous - 7 days ago
0
pcre2

正则提取

ss
Submitted by sss - 7 days ago
0
pcre2

e-mail regex

Validates an email address
Submitted by anonymous - 7 days ago
0
pcre

inefficient int/float(exponent)

match a single number
Submitted by anonymous - 8 days ago
0
pcre2

id

getid
Submitted by anonymous - 8 days ago
0
pcre2

id

getid
Submitted by anonymous - 8 days ago
0
javascript

sql inj

as
Submitted by anonymous - 8 days ago
0
pcre2

aff url normalize

conevrt url
Submitted by anonymous - 9 days ago
0
pcre

amazIng regex

super
Submitted by anonymous - 9 days 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