Data Structure Algorithm, JavaScript, Programming, Software Development, Technology.
Efficient pattern matching in JavaScript Photo by aiokr chen on Unsplash When it comes to pattern matching inside a string, sometimes doing string.indexOf is not enough. The method works, but if you’re dealing with a big-enough string (say, a full chapter inside a book, or why not, the entire