Well, I don't see it matching the beginning of the string for example. Although I wonder if something else is possible here though. But I don't think it would hurt to explicitly match the beginning of the string here with \A.