tags:

views:

102

answers:

1

Ive been trying to exclude twitter @replies from my website using bits of code I googled but still unfortunately lost.

its located here www.johnnyharu.com

Can anyone help?

Another newbie

+1  A: 

You could use regular expressions and run any incoming messages through a filter, such as sed.

Your regular expressions could be something like (correct me if I'm wrong regex gurus):

@[^ \t\n]+

If you wanted to use sed, this command would strip them for you:

s/@[^ \t\n]+//g
samoz
You beat me to it :)
Crippledsmurf

related questions