Regular Expressions 101

Sponsors

Library entries

0
javascript

soteshop price

aa
Submitted by anonymous - 13 days ago
0
java

id card

打断点
Submitted by anonymous - 13 days ago
0
java

fdsf

sdf
Submitted by anonymous - 13 days ago
0
pcre2

App store

App store ID
Submitted by anonymous - 13 days ago
0
javascript

Collection of sub routes with similar segments

asdf
Submitted by anonymous - 13 days ago
0
pcre2

username or email?

validate username or email
Submitted by anonymous - 14 days ago
0
pcre2

Match phrase at end of line.

Match phrase at end of line.
Submitted by s1nglethr3ad - 14 days ago
0
javascript

dimension

t
Submitted by t - 14 days ago
0
pcre2

GCR Image Regex

GCR Images
Submitted by anonymous - 14 days ago
0
pcre2

Wagtail

Deferring images with wagtail
Submitted by punksage - 15 days ago
0
pcre2

Junction Tertiary

Tertiary Junction Power Detection
Submitted by anonymous - 15 days ago

Get path from any text

Vote

1

Regular Expression
pcre2

/
((?:(?# path without "" )(?<opening>(?# 'C:/', '//' or '%VariableWindows%')(?<montage>\b[a-zA-Z]:[\/\\])|(?:[\/\\][\/\\])|(?:%\w+%[\/\\]?))(?:(?# directory btw // )[^\/\\<>:"|?\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