Regular Expressions 101

Sponsors

Library entries

1
pcre2

UK style date

dd/mm/yyyy
Submitted by Russ Ferriday, from Docusign templates - a year ago
1
pcre2

ew

ee
Submitted by anonymous - a year ago
1
pcre2

Email

Regex simples para verificação de email
Submitted by anonymous - a year ago
1
pcre2

Backtracking Test

Submitted by farhan - a year ago
1
pcre2

trino kill query

trino kill query
Submitted by anonymous - a year ago
1
pcre2

trino kill query ID

trino kill query ID
Submitted by anonymous - a year ago
1
pcre2

Sutthinart

Private Regex Library
Submitted by Sutthinart Khunvadhana - a year ago
1
java

11

11
Submitted by 11 - 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 - 12 days ago