Regular Expressions 101

Community Patterns

1

pmsa_docx_replace

PCRE2 (PHP >=7.3)
pmsa_docx_replace
Submitted by anonymous - 2 days ago
1

http(s) address

PCRE2 (PHP >=7.3)
simple http(s) patter
Submitted by lhotakj - 2 days ago
1

my

PCRE2 (PHP >=7.3)
replace first line and second
Submitted by MH - 4 days ago
1

Parser

PCRE2 (PHP >=7.3)
for mail
Submitted by anonymous - 5 days ago
1

GrEedy

Python
greedy or no greedy_**
Submitted by daen3r1s - 6 days ago
1

amp;

PCRE2 (PHP >=7.3)
subtitui
Submitted by seidao - 12 days ago

Valid HTTP url

0

Regular Expression
Python

r"
^(?P<scheme>http(?:s)?:\/\/)?(?P<www>www\d?\.)?(?P<domain>\b(?!www\d?\.)[a-z\d\-]+(?:\.[a-z\d\-]{2,})+)(?P<port>:\d{1,5})?(?P<path>\/(?:[-a-zA-Z0-9._~!$&\'()*+,;=:@]|%[0-9a-fA-F]{2})*)*(?P<query_fragm>[?#&][\/\_\-\&\%\?\#\+\=\.:a-zA-Z\d]*)*$
"
gm

Description

Loading markdown...
Submitted by anonymous - 4 months ago
(Last modified 4 months ago)