Regular Expression - ^ Matches Start of Line

The circumflex (^) makes sure that the regular expression pattern that follows is at the beginning of the line. Obviously, this needs to be at the start of the pattern too.


Lines that start with "The". It would match the following:
The best start
There would be a way to stop this one.
It would not match the following:
This would not match. The word is not at the beginning.

Computing Articles