Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^http(?:s?):\/\/regex101\.com\/r\/([a-zA-Z0-9]{1,6})?$
/
gm

Description

Grabs another regex from the Public Library to do most of the dirty work.

When a tab is opened it scans and the:

head header body

Determines the type of site it is:

Query Doc

Assigns weights based on types.

Submitted by Another Dude - 3 years ago