Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
([\x{0600}-\x{06FF}A-z-\d\/_.]+)?
/
gm

Description

regex to check for valid URL String.

Accept:

  1. A-z Characters.
  2. Persian Characters (index 0x0600 to 0x06FF)
  3. Numbers
  4. "-", "_", ".", "/" Characters.
Submitted by anonymous - 6 years ago