95

I have a string "foo_bar" and "foo_foo_bar". How do I remove the last "_bar" from the string? So I'm left with "foo" and "foo_foo".

thefourtheye
  • 221,210
  • 51
  • 432
  • 478
Albert
  • 3,581
  • 3
  • 27
  • 50

0 Answers0