There isn't any difference. Deleting everything before every instance and deleting everything before the last instances gives the same result.
No, adding $ makes it so it will only match if GTT is three characters from the end of the string (or 4 if the last character is \n).
In reply to Re^3: how to remove characters before and after a search pattern in a string?
by ikegami
in thread how to remove characters before and after a search pattern in a string?
by BhariD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |