strings
Last updated
Was this helpful?
Last updated
Was this helpful?
split vs rsplit Some websites having file upload feature, typically has limitation to certain file extensions. On the logic part (Backend) which handles file uploading functionality, if you use split, it would split at every occurance and it may be possible that the file uploaded is example.file.txt but if you use rsplit, it would split from right side, take only extension and compare it with allowed extensions