Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. array = ['reading', 'books'];
  2.  
  3. string = 'If you want to read the book, just read it.';
  4.  
  5. desiredOutput = 'If you want to the , just it.';
  6.  
  7.  
  8. // Desired match
  9.  
  10. 'reading' -> match for 'rea', 'read', 'readi', 'readin', 'reading'
  11.  
  12. 'books' -> match for 'boo', 'book', 'books'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement