Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- array = ['reading', 'books'];
- string = 'If you want to read the book, just read it.';
- desiredOutput = 'If you want to the , just it.';
- // Desired match
- 'reading' -> match for 'rea', 'read', 'readi', 'readin', 'reading'
- 'books' -> match for 'boo', 'book', 'books'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement