Regular Expressions 101

Sponsors

Library entries

0
pcre2

scss class matching

scss class matching
Submitted by lucas - 5 days ago
0
java

lat cyr letters

only lat and cyr letters
Submitted by anonymous - 5 days ago
0
pcre2

ipv4 match

ipv4 match
Submitted by anonymous - 5 days ago
0
java

LinkedIn Profile Url

LinkedIn Profile Url
Submitted by Morons - 7 days ago
0
python

Meh

d
Submitted by anonymous - 8 days ago
0
pcre2

股票代码

aa
Submitted by vv - 8 days ago
0
python

scrape pdf

get data from pdf
Submitted by anonymous - 8 days ago
0
pcre2

Get HTML attribute

Get HTML attribute with /" inside
Submitted by anonymous - 9 days ago
0
pcre2

IP address with port

Match ip address with port
Submitted by PARNKOT - 11 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 - 23 days ago