Regular Expressions 101

Sponsors

Library entries

1
pcre2

email-tec

mesa
Submitted by anonymous - a year ago
1
pcre2

2

2
Submitted by anonymous - a year ago
1
pcre2

Gitlab - Branch name

Branch name for Gitlab's Push Rules
Submitted by anonymous - a year ago
1
pcre2

Gitlab - Commit message

Commit message for Gitlab's Push Rules
Submitted by anonymous - a year ago
1
pcre2

aws-arn-parser

this helps in parsing aws arn's
Submitted by anonymous - a year ago
1
pcre2

One or more spaces

Find one or more spaces
Submitted by anonymous - a year ago
1
pcre2

find img without alt

okok
Submitted by anonymous - a year ago
1
pcre2

hdfilmcehennemi ana filmler

nothing
Submitted by no one - a year 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