Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

`
(\s|^)Firefox\s?/\s?(6[0-9]|[7-9][0-9]|\d{3,})(\.|\s|$)
`
i

Description

Detects modern Firefox browser versions

  • Firefox >= 60

These versions require only ~29.33 KB of core-js polyfills.

Submitted by slavafomin - 5 years ago