I need to find strings like “@something” beginning with “@” with RegexKitLite. I’ve used regex “@[a-z]+”, and it works ok. But I need “@” only at the begin of words, so I’ve tried “\b@[a-z]+” and this time it doesn’t work. Any ideas how to make proper regex?
I need to find strings like @something beginning with @ with RegexKitLite. I’ve used
Share
Try this here
You can see it online here on Regexr
(?<=\W|^)is a lookbehind assertion that says, ensure that there is a non word character\Wor the beginning of the string^before the@