10-02-2009 06:58 PM
I now just got stucked with the new line "\n" match. If I just use "---...---", I got all I need seperated but for the element 1, element 2 and the array, I got a blank line at the begining. I tried all the ways with "\n" but had no luck. I also tried "\r", "\t", no success.
By the way, the sample file I'm using is the one I edit by notebook. That means the newlines in the file is exactly the cause of hitting the return key on the keyboard. Will that cause any problem in the matching?
Thank you.
Richard
10-02-2009 07:11 PM
I got it!
I looked at the newline in my string indicator in "\" display mode. The newline turned out to be a "\t\r\n ". When I used "-----------...-------\t\r\n" as the search term, I got everythig right in the right place! Thank you very much, Darin.
Richard
10-02-2009 07:14 PM - edited 10-02-2009 07:15 PM
I simply copy and pasted the text from your original post and it works fine. If you haven't already, you should put the raw string into an indicator and turn on '\ code display'. This should tell you what the newline character is. Or, just use the Trim Whitespace VI on those strings and chop it off.
Edit: I see you figured this one out yourself.