[R] read.socket - Strange strings. How to force sub to remove all occurences of a pattern?
wolski at molgen.mpg.de
Thu Feb 19 19:15:32 CET 2004
Hallo Douglas, Henrik!
Thanks a lot for the help with sub and gsub.
*********** REPLY SEPARATOR ***********
On 2/19/2004 at 10:12 AM Douglas Grove wrote:
>Did you look at the help page for sub??
>On Thu, 19 Feb 2004, wolski wrote:
>> I am opening a connection to an apache server sending a get and then I
>am reading from the socket.
>> All works finde except that I am getting some strange strings disrupting
>> <FON\r\nffb\r\nT COLOR ...
>> They are not frequent ( a few of them) but of course make live hard.
>> I cant observe them with lynx --source they dont occure.
>> I am trying a workaround with sub. But it removes only the first
>> How I can force sub to remove all occurences of a pattern and not only
>> R-help at stat.math.ethz.ch mailing list
>> PLEASE do read the posting guide!
More information about the R-help