in reply to Re^2: how to remove characters before and after a search pattern in a string?
in thread how to remove characters before and after a search pattern in a string?

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).

  • Comment on Re^3: how to remove characters before and after a search pattern in a string?
  • Download Code