Regular Expressions 101

Sponsors

Library entries

1
pcre2

BIC Codes

BIC (Bank Identifier Code) #fin #bank #swift #iban #bic
Submitted by anonymous - a year ago
1
pcre2

Detect any integer larger than 499

Glad this helps for some
Submitted by Wallik - a year ago
1
pcre2

https

regex for url
Submitted by anonymous - a year ago
1
pcre2

Internation Phone

phone number with country code + or 00
Submitted by anonymous - a year ago
1
pcre2

Name

English or Arabic Letters and Spaces
Submitted by anonymous - a year ago
1
pcre2

Validate a 10-digit US Phone Number

Validate a 10-digit US Phone Number
Submitted by JB - a year ago
1
pcre2

Obsidian external embedded link

Obsidian external embedded link
Submitted by arezvov - a year ago
1
pcre2

pack_size

get pack_size from a string
Submitted by anonymous - a year ago
1
pcre2

us phone number validation

us phone number validation
Submitted by anonymous - a year ago
1
pcre2

Email Verification

PHP REGEX to verify an email.l
Submitted by anonymous - a year ago
1
pcre2

Test expression

To find at most 3 a in string
Submitted by anonymous - a year ago
1
pcre2

Email

[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-z]{2,3}$
Submitted by Mykola Buhaiov - a year ago
1
pcre2

Jira

Jira
Submitted by anonymous - 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