how to Exclude specific word using regex? -
i have problem here, have following string
@novriiiiii yauda busana muslim @nencor haha. wa'alaikumsalam noperi☺
then use regex pattern select string
\w+
however, need to select string except word prefixed @ @novriiiiii
or @nencor
which means, have exclude @word ones
how do ?
ps. using regexpal compile regex. , want apply regex pattern yahoo pipes regex. thank
you can use negative lookbehind if word preceded @
excluded. need word boundary before word or else lookbehind affect first character.
(?<!@)\b\w+
Comments
Post a Comment