^ Matches the beginning of the line. $ Matches the end of the line.Ok, then, how many lines are in the following marked area:
Welcome
To
Regular
Expressions.
I say there are 4, and I think most normal humans would agree with me. For example, 'Regular' is at the beginning of a line.^ Matches the beginning of the input string. $ Matches the end of the input string.Again, tiny change, but (I think), large effect.