Regular Expressions 101

Sponsors

Library entries

0
pcre2

regex

remove pun
Submitted by anonymous - 13 days ago
0
python

parse sqf defines

parsing armas sqf preprocessor defines
Submitted by anonymous - 15 days ago
0
pcre2

测试

竭莹用于在json中寻找评论的正则表达式
Submitted by anonymous - 16 days ago
0
dotnet

myRegEx

myRegEx
Submitted by Avinash - 16 days ago
0
python

Test molecule coverage

Regex to test covered tests
Submitted by Florian Toulemont - 16 days ago
0
pcre2

Include non-whitespace

Prevents whitespace only string
Submitted by anonymous - 17 days ago
0
python

US Stock Exchange symbols

Regex for Telegram Bot
Submitted by Lucas Zurverra - 17 days ago
0
pcre2

reset1

reset1
Submitted by anonymous - 17 days ago
0
pcre2

reset

reset
Submitted by anonymous - 17 days ago
0
pcre2

reset capture

reset capture
Submitted by anonymous - 17 days ago
0
pcre2

conditional

conditional
Submitted by anonymous - 17 days ago
0
pcre2

datetime?

Attempt at datetime parsing
Submitted by anonymous - 18 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 - 3 months ago