Finding @mentions in string

Replace the question mark (?) quantifier (“optional”) and add in a + (“one or more”) after your character class:

@([^@ ]+)

Leave a Comment