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+ 

http://rubular.com/r/onel70am5q


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -