^start of line
PKGthe literal text PKG (case sensitive) ?matches at most one character from the set below:
a-zone character from a (9710) to z (12210) (case sensitive)
\.the literal . (4610 / 568 / 2E16)
Character Class[0-9]{0,4} {0,4}matches between 0 and 4 characters from the set below:
0-9one character from 0 (4810) to 9 (5710)
the literal (3210 / 408 / 2016)
\.{3}the literal . (4610 / 568 / 2E16) , repeated exactly 3 times
BBthe literal text BB (case sensitive) A-Bone character from A (6510) to B (6610) (case sensitive)
*the literal (3210 / 408 / 2016) , repeated any number of times
$end of line
g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string