Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
([A-z\d-\/_.]+)?
/
g

Description

regex to check for valid URL String.

Accept:

  1. A-z Characters.
  2. Numbers
  3. "-", "_", ".", "/" Characters.
Submitted by anonymous - 5 years ago