Regular Expressions 101

Sponsors

Library entries

0
pcre2

Password

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

REGEX OS

Regex para extrair titulo e descrição duma OS
Submitted by anonymous - 8 hours ago
0
pcre2

长宽高

长宽高
Submitted by mouxan - a day ago
0
pcre2

match extends in a class

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

implements Regex

To match implements in classes
Submitted by anonymous - 2 days ago
0
pcre2

AWS EC2 Hostname

Validates AWS EC2 Hostnames
Submitted by holy-moly-555 - 2 days ago
0
pcre2

Date dd.mm.yyyy

Regex for datestring validation
Submitted by anonymous - 2 days ago
0
pcre2

Equifax street types parser

Street types
Submitted by anonymous - 2 days ago
0
pcre2

stage build checker

stage build checker
Submitted by anonymous - 2 days ago
0
pcre2

estoque_bling_regex

Regex xml stock Bling
Submitted by Dimitri - 3 days ago
0
pcre2

Rules

Rules
Submitted by anonymous - 4 days ago
0
pcre2

Host Regex

Get any hostname
Submitted by anonymous - 6 days ago
0
pcre2

Phone (rus)

Russian phone number
Submitted by anonymous - 8 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