I need javascript regex that will match words that are NOT followed by space character and has @ before, like this:
@bug - finds "@bug", because no space afer it
@bug and me - finds nothing because there is space after "@bug"
@bug and @another - finds "@another" only
@bug and @another and something - finds nothing because both words are followed by space.
Help? Added: string is fetched from and FF puts it's own tags at end of it. Although I basically need only the last word starting with @, $ (end-of-string) can not be used.