Regex is missing a `^` to ensure it is the beginning of the text (or `^\s*` if you want to take space into account).