Regular Expressions 101

Sponsors

Library entries

0
pcre2

Kucoin trading

Used to match kucoin trading links
Submitted by anonymous - 2 days ago
0
python

分组引用

分组引用
Submitted by anonymous - 2 days ago
0
pcre2

灾难性回溯

灾难性回溯
Submitted by anonymous - 2 days ago
0
pcre2

独占模式

独占模式
Submitted by anonymous - 2 days ago
0
pcre2

非贪婪

非贪婪
Submitted by anonymous - 2 days ago
0
pcre2

asdf

ghjk
Submitted by anonymous - 3 days ago
0
pcre2

/Host: (.*?)<br>/gu

1
Submitted by anonymous - 3 days ago
0
pcre2

Partial Date

Partial date
Submitted by anonymous - 4 days ago
0
pcre2

regex-input-number

regex-input-number
Submitted by me - 4 days ago
0
pcre2

find abc in string

first test
Submitted by anonymous - 4 days ago
0
java

时间

时间
Submitted by 旧信 - 4 days ago
0
pcre2

simulate to event

simulate to event
Submitted by anonymous - 4 days ago
0
pcre2

simulate to event

simulate to event
Submitted by anonymous - 4 days ago
0
pcre2

simulate to event

simulate to event
Submitted by anonymous - 4 days ago
0
pcre2

Remove Hatena blog keyword

Remove Hatena blog keyword
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 - a month ago