in reply to Re: Use global flag when declaring regular expressions with qr?
in thread Use global flag when declaring regular expressions with qr?

Gives:
Unknown regexp modifier "/g" at (eval 1) line 1, at end of line
As mentioned elsewhere, g is one of the flags that is a property of the match/substitution operator, not of the regex, and can't be used with qr.
--
A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |