Regular Expressions 101

gdpsfh anti-stupid

Open Workspace
  • JavaScript
  • Match
1

Regular Expression

/
(?<=https?:\/\/)[a-z0-9_]{3,20}(?=\.ps\.fhgdps\.com)
/
gm

Description

(refer to forum post 1357770511563624621) gdpsfh anti-stupid, matches correct gdps name if incorrect format https://mygdps.ps.fhgdps.com => mygdps http://mygdps.ps.fhgdps.com => mygdps https://mygdpsaaaaaaaaaaaa.ps.fhgdps.com => (no match because incorrect subdomain) correctinput => (no match)

Submitted by Anonymous