I've got a regular expression "(?i).*guitar.*"
but how do I make this only match if the word is not surrounded by other characters?
So I thought, let's just add [^a-zA-Z]
to both ends of the regular expression except when I did that, it no longer matches when the word is at the beginning or very end of a string.