Regular Expressions 101

Sponsors

Library entries

6
javascript

HTML img

Grabs all HTML tags
Submitted by Pirate11 - 7 years ago
6
javascript

Email

no description available
Submitted by anonymous - 7 years ago
5
javascript

Hello world !

no description available
Submitted by Fedir RYKHTIK - 9 years ago
5
javascript

Accept url without www

no description available
Submitted by anonymous - 9 years ago
5
javascript

MAC address

a mac address separated by dashes or colons.
Submitted by anonymous - 7 years ago
5
javascript

password 1upper 1lower 1number 1specialcharater

fjk@1Qaa$
Submitted by Anuswadh - 7 years ago
4
pcre2

CloudFlare

Cloud Flare
Submitted by anonymous - a year ago
4
javascript

Repeated words (JS)

no description available
Submitted by paconaranjo - 9 years 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