Regular Expressions 101

Sponsors

Library entries

0
pcre2

id_name_fb

get id, name from fb link
Submitted by anonymous - a day ago
0
pcre2

basic email validation

Basic email regex for quick validation
Submitted by bUxEE - a day ago
0
pcre2

RTDM_Thread_Pool

RTDM_Thread_Pool
Submitted by anonymous - 2 days ago
0
pcre2

Validation

^a-zA-Z+@[a-zA-Z]{3,20}\.[a-z]{3}$
Submitted by anonymous - 4 days ago
0
pcre2

Password

Password includes a,A,1,!$#%
Submitted by anonymous - 6 days ago
0
pcre2

长宽高

长宽高
Submitted by mouxan - 7 days ago
0
pcre2

match extends in a class

to match extends in a class
Submitted by anonymous - 7 days ago
0
pcre2

implements Regex

To match implements in classes
Submitted by anonymous - 7 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 - 2 months ago