I've tried [^A-Za-z0-9]tent[^A-Za-z0-9] .. with multiple combinations of ?+*
as well as something like [^|[^A-Za-z0-9]]tent[[^A-Za-z0-9]|$]
I want to match:
- attention - NO
- look at the tent - YES
- tent's are nice - YES
- something tent something - YES
- camping,tent,outdoors - YES (some non-alphanumeric delimiter)
if it makes it easier something like "tenting" can also be a match
I suppose I'm missing something from all the pages I've looked at, but I'm really stuck here. I need to find a search word, at the start, middle or end of a sentence or delimited list. Do I need to do multiple statements?
I was hoping there might be a way to say use this expression but not if it's the start of the line or the end of the line