Note that you reversed the operator. It’s not ~=, it’s =~.
In reply to Re^3: Do not understand code by Your Mother in thread Do not understand code by BlackKnait