Regular Expressions 101

Community Patterns

1...56789...902

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^(?!\.)(?!.*?\.\.)(http(s)?:\/\/)(([0-9a-zA-Z-]+\.)+([a-zA-Z]{2,})(?:\/)?(:[0-9]+)?((\/([a-zA-Z0-9\-\.~:\/%^*?#[\]@!\$&'\(\)\*\+,;=.]+))?(\?[0-9a-zA-Z\.\+\%@\/&\[\];=_-]+)?)?)$
/
gm

Description

no description available

Submitted by anonymous - 5 years ago