M
Mike Hildner
I'm receiving bytes over a socket and displaying in a text box. In the
responses I receive, some lines are delimited with x0A and others with
x0D0A. I'd like to search for x0A and replace with x0D0A, but only if x0A is
preceeded with x0D - so I don't end up with x0D0D0A.
Right now I'm searching for x0D0A, replacing with x0A, then searching for
x0A and replacing with x0D0A. Seems a little ugly.
Is there a better way to do this? I thought maybe regular expressions, but
don't know much about regex.
TIA,
Mike
responses I receive, some lines are delimited with x0A and others with
x0D0A. I'd like to search for x0A and replace with x0D0A, but only if x0A is
preceeded with x0D - so I don't end up with x0D0D0A.
Right now I'm searching for x0D0A, replacing with x0A, then searching for
x0A and replacing with x0D0A. Seems a little ugly.
Is there a better way to do this? I thought maybe regular expressions, but
don't know much about regex.
TIA,
Mike