Regular Expressions 101

Library entries

1
pcre2

Pattern string

Example of test I did do to company.
Submitted by Claudio Santos - 2 years ago
1
pcre2

BIC Codes

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

Detect any integer larger than 499

Glad this helps for some
Submitted by Wallik - 2 years ago
1
pcre2

https

regex for url
Submitted by anonymous - 2 years ago
1
pcre2

Internation Phone

phone number with country code + or 00
Submitted by anonymous - 2 years ago
1
pcre2

Name

English or Arabic Letters and Spaces
Submitted by anonymous - 2 years ago
1
pcre2

Validate a 10-digit US Phone Number

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

Obsidian external embedded link

Obsidian external embedded link
Submitted by arezvov - 2 years ago

Url regex

Vote

-1

Regular Expression
pcre2

/
(?<=href=\"|src\=\"|content\=\"|style\=\"|\")(?P<PROTOCOLE>https:\/\/|http:\/\/|\/)(?P<WWW>www\.|)(?P<GLOBAL>(?<SOUSDOMAINE1>[\w\-\/]+)(?P<EXTENSION1>\.com|\.fr|\.org|\.io|\.tech|\.net|\.xyz|\.biz|\.school)|(?<SOUSDOMAINE2>[\w\-\/]+)\.(?P<NOM>[\w\-]+)(?P<EXTENSION2>\.com|\.fr|\.org|\.io|\.tech|\.net|\.xyz|\.biz|\.school)|[\w\-\/]+)(?P<SUFFIXE>[\w\-\?\-\/\.\=\&\;\$\:\+\%\@]+|)
/
gm

Description

Loading markdown...
Submitted by anonymous - 2 years ago