Regular Expressions 101

Leaflet tag ID matcher

Open Workspace
  • PCRE (Legacy)
  • Match
0

Regular Expression

/
(?:leaflet|mapbox)[\w\-\._]*(?:-script)?
/
g

Description

Regex (to be) used to identify ID of the tag that loaded Leaflet (or Mapbox).

Submitted by cebence