Regular Expressions 101

Community Patterns

-2

ex_3_b

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 8 years ago
3

Perl

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 8 years ago

Extract port from URL

1

Regular Expression
PCRE (PHP <7.3)

/
(^([A-Z]*)((:\/\/)?)([A-Z\d\.-]{2,})\.([A-Z]{2,}):(\d{2,5})?)
/
i

Description

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