Is there a way to only match the character "=" in a string if it is not at the beginning of a line and no other character, for example "$", appears on the same line?
- The equal sign should not be at the beginning of a line
- No other character, such as "$", should appear on the same line
Just to clarify, in the examples below:
$a = b
a
= b
a = b
I am only interested in matching the equal sign in the last line.