in reply to Confusion in working upon regex with /m

If you use /x you can separate whatever "variable looking" bits follow (or proceed, for that matter) with whitespace.

qr/blah \s+ blah $ yackety \s+ schmakety/mx

Edit: Derp; bad example is bad; see below for better.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: Confusion in working upon regex with /m
by ikegami (Patriarch) on Nov 12, 2021 at 04:58 UTC

    That will never match. $ has to be followed by a line feed or EOS, and you also require that it's followed by a y. Those are mutually exclusive requirements.