Regular Expressions 101

Sponsors

Library entries

1
pcre2

Pattern string

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

lsblk-output-regex

Trying to adapt this regex to support LVM.
Submitted by anonymous - 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

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