Let's say I have word phone
It's possible matches in my case are as follows
- phone (no space in the beginning and in the ending just phone)
- "phone" (can have special characters at the end or in the beginning)
Cases to be Neglected [Here I'll mark the space with \s]
- phone\s (any space in either in the beginning or in the end should not be matched)
- phoneno (any alphabets or numbers appended with phone should not be matched)
I've tried the following regex [^\w\s]items[^\w\s] link
But It didn't match the case of phone with no space in the beginning and the end as it requires 1 letter other than space and alphabets in the beginning and the end
Kindly suggest any other solutions which satisfies above mentioned cases