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".
Asked
Active
Viewed 1.7e+01k times
95
thefourtheye
- 233,700
- 52
- 457
- 497
Albert
- 3,611
- 3
- 28
- 52