I have this string -:
@Harry @Harry are great twins with @Harry
I would want to match @Harry
in the above string. But on one condition -:
@Harry should be preceeded by either nothing or a white space character only, same goes for succession too.
So here 3 matches must be found. Currently i am doing this, but in vain -:
(\s|^$)\@Harry(\s|^$)
.