panzerdp / voca

The ultimate JavaScript string library
https://vocajs.pages.dev
MIT License
3.6k stars 137 forks source link

rsplit would be nice #40

Closed JesseAldridge closed 5 years ago

JesseAldridge commented 5 years ago
const image_name = v.rsplit('my.cool.image.png', '.', 1)[0]
console.log(image_name) // "my.cool.image"

See Python docs: https://python-reference.readthedocs.io/en/latest/docs/str/rsplit.html

panzerdp commented 5 years ago

Thanks. But at the moment I'm not interested in adding this function.