Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^\/(healthyawards)\/??$
/
g

Description

Trying to match only 2 & 3 below:-

  1. /u/global/gadgets/healthyAwardsClub.jsp
  2. /healthyawards
  3. /healthyawards/
  4. /u/global/gadgets/healthyawards/healthyAwardsClub.jsp
Submitted by anonymous - 8 years ago