Viktor Posted February 5, 2008 Share 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 Link to comment Share on other sites More sharing options...
Achilles Posted February 5, 2008 Share 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] Link to comment Share on other sites More sharing options...
Viktor Posted February 6, 2008 Author Share Posted February 6, 2008 Good guess! Worked! Thanks a lot! Viktor 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 Link to comment Share on other sites More sharing options...
Viktor Posted February 6, 2008 Author Share Posted February 6, 2008 Good guess! Worked! Thanks a lot! Viktor 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 Link to comment Share on other sites More sharing options...
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