Regular Expressions 101

Sponsors

Library entries

10
python

entity

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

domain - host

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

repeat group match

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

CSS Import

no description available
Submitted by anonymous - 9 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 - 7 years ago
5
python

psswd

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

Match Only Text

no description available
Submitted by anonymous - 7 years ago

Get path from any text

Vote

6

Regular Expression
pcre2

/
(?# path without "" )(?<opening>(?<montage>\b[a-zA-Z]:[\/\\])|(?:[\/\\][\/\\](?>[?.][\/\\](?:[^\/\\<>:"|?\n\r ]*[\/\\])?(?:(?&montage))?|(?!(?&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 - 4 months ago