Positive Lookbehind(?<=(Weight|Wt\.) ?\(kg\) : ) Weightthe literal text Weight (case sensitive) Wtthe literal text Wt (case sensitive) \.the literal . (4610 / 568 / 2E16)
?optionally matches the literal (3210 / 408 / 2016)
\(the literal ( (4010 / 508 / 2816)
kgthe literal text kg (case sensitive) \)the literal ) (4110 / 518 / 2916)
\d+a Unicode decimal digit, repeated at least once
\.the literal . (4610 / 568 / 2E16)
\d+a Unicode decimal digit, repeated at least once
Positive Lookahead(?= Kg) Kgthe literal text Kg (case sensitive) 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