Regular Expressions 101

Sponsors

Library entries

10
python

entity

no description available
Submitted by anonymous - 7 years ago
8
python

domain - host

no description available
Submitted by anonymous - 7 years ago
7
python

CSS Import

no description available
Submitted by anonymous - 8 years ago
7
python

repeat group match

no description available
Submitted by anonymous - 7 years ago
6
python

Find consecutive duplicate words

no description available
Submitted by anonymous - 7 years ago
5
python

Form Tag

Form Tag
Submitted by Jay Patel - 6 years ago
5
python

psswd

no description available
Submitted by anonymous - 6 years ago
5
python

Match Only Text

no description available
Submitted by anonymous - 6 years 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