Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

To index from the end of the string. If you want the last 3 characters from a string, it's often easier to reverse the string and take the first 3.


Most languages that are good enough at doing Unicode are also modern enough to give you a “suffix” function.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: