I am creating javascript function to filter ul list li based on input
textli.match("^he")
Above code matches all the words starting with ab.But I also want to check other words seperated by space.
hello world
so to match above string textli.match("^he") will do the job , but what if I also want to filter world with textli.match("^wo")