Madhumitha Baskaran wrote:What algorithms are used by indexof() or regex in java.Please tell me.
I don't understand the question, but the difference is that
indexOf() is a straightforward character-for-character matcher, whereas regex is a
pattern matcher.
I am looking for 2 easy algorithms to implement string match. Can you suggest that also.
indexOf() is
definitely simpler than using regexes.
As tomorrow is my project deadline, I am not able to understand complex algorithms easily.
Please help.
1. If you can learn regexes in 24 hours
you should be on the board of Mensa, so unless that's the case I'd stick with
indexOf().
2. Next time, don't wait until the last minute to ask for help.
Winston