in reply to Re^3: How to remove everything after last occurrence of a string?
in thread How to remove everything after last occurrence of a string?

I guess we disagree about \K. I would not use it unless it was actually needed for the functionality desired. Perl will always have its place (at least for a very long time). However, Perl is not being routinely taught at the undergrad level anymore and it could be that lot's of Perl code will wind up being maintained by folks who are not all that proficient at the language or the more obscure corners of its regex syntax.
  • Comment on Re^4: How to remove everything after last occurrence of a string?