Is there a way to tell if a regex match is on the same line or if there is content before and after?
For example, if I have this string: