I apologize in advance for the poor title of this post.
I am trying to match any word that contains a specific string of characters, that is, if I want to combine any words containing the string "click", then I want the following to be returned from my search:
- click
- expression
- depression
- pressure
So far I have this /press\w+/one that matches the word and any subsequent characters, but I don't know how to get the previous characters.
Many thanks
source
share