slightly clarify the meaning of $ in regex

This patch was suggested in #116773.
reword the description of what the /m flag does