indexOf() can not work on regular expressions, Yes, we can not pass regex as an argument to indexOf() We can not specify starting index from where to start search in search()