I have a task which requires me to replace a pattern of characters terminated by a @ symbol with the sub-word immediately following it. So, given presymbol@postsymbol for example, the replacement would produce postsymbol.
I am currently using this pattern '/(^|\s)@([a-z0-9_]+)/' to do the replacement, but my testers gave me feedback that putting " in front of the @, causes the replacement to fail.
How can I fix this pattern to output properly. Something similar to '/(^|\s)(@|"@)([a-z0-9_]+)/' ?