Regular Expressions 101

Sponsors

Library entries

0
javascript

Matches filenames in urls

Filenames in urls
Submitted by anonymous - 7 hours ago
0
pcre2

TXN ID

VIL ID
Submitted by anonymous - a day ago
0
dotnet

BI/CC

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

Slurs

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

partnkey value

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

正则提取

ss
Submitted by sss - 3 days ago
0
pcre2

e-mail regex

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

inefficient int/float(exponent)

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

id

getid
Submitted by anonymous - 4 days ago
0
pcre2

id

getid
Submitted by anonymous - 4 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 - 2 months ago