Regular Expressions 101

Sponsors

Library entries

0
pcre2

Regex PH landline

Regex PH landline (sample)
Submitted by anonymous - a month ago
0
pcre2

MATCH NO HREF DE HTML

Match em href do html
Submitted by anonymous - a month ago
0
javascript

test

o
Submitted by k - a month ago
0
pcre2

Checker for specific key

Checker for specific key
Submitted by anonymous - a month ago
0
pcre2

Between brackets

Get all values between brackets
Submitted by aldo-f - a month ago
0
java

FullName_regex

2135
Submitted by anonymous - a month ago
0
pcre2

MB - XE Currency connector

Martin Bencher - XE Currency connector
Submitted by Ghita - a month ago
0
javascript

Minecraft Command Getter

A "detector" thing
Submitted by MeowcaTheoRange - a month ago
0
pcre2

HGVS Frameshift protein

Protein frameshift hgvs
Submitted by anonymous - a month 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 - 2 months ago