Viktor Posted February 5, 2008 Posted February 5, 2008 (edited) Hi Scripters, I have a string I captured from a web page and it has somewhere in it a newline char (I know that there are several different types of this but I have no idea how they differ), since when I write it to a text file it shows up in two lines, which makes the file useless for importing it to my financial software. How could I get rid of the offending new line char? I have tried StringStripCR, it did nothing. Any ideas? Thanks a lot! Viktor Edited February 5, 2008 by Viktor
Achilles Posted February 5, 2008 Posted February 5, 2008 I'm guessing there might not be CR's but rather CRLF... Try StringReplace($yourText, @CRLF, " ")If that doesn't work trying using the same thing except with @LF My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Viktor Posted February 6, 2008 Author Posted February 6, 2008 Good guess! Worked! Thanks a lot! Viktor Piano_Man said: I'm guessing there might not be CR's but rather CRLF... Try StringReplace($yourText, @CRLF, " ")If that doesn't work trying using the same thing except with @LF
Viktor Posted February 6, 2008 Author Posted February 6, 2008 Good guess! Worked! Thanks a lot! Viktor Piano_Man said: I'm guessing there might not be CR's but rather CRLF... Try StringReplace($yourText, @CRLF, " ")If that doesn't work trying using the same thing except with @LF
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now