I'm trying to parse following sentences with regex (javascript) :
- I wish a TV
- I want some chocolate
- I need fire
Currently I'm trying : I(\b[a-zA-Z]*\b){0,5}(TV|chocolate|fire)
but it doesn't work. I also made some test with \w
but no luck.
I want to allow any word (max 5 words) between "I" and the last word witch is predefined.