I apologise in advance for the poor title of this post.
I'm trying to match any word which contains a certain string of characters i.e. if I wanted to match any words which contained the string 'press' then I would want the following returned from my search,
- press
- expression
- depression
- pressure
So far I have this /press\w+/
which matches the word and any following charachers but I don't know how to get the preceding characters.
Many thanks