09-14-2007 12:24 PM
09-14-2007 01:03 PM
09-14-2007 01:16 PM - edited 09-14-2007 01:16 PM
I don't see any \s (space) in the text following the Search and Replace in my example. See attched image.
Did you use the one I loaded in my previous post?
It's supposed to remove white spaces.. or.. did you change that one to have tabs?? You may have to post your new code...
If you changed it from empty string to tabs.. okay.. humm..
Message Edited by JoeLabView on 09-14-2007 02:20 PM
09-14-2007 01:31 PM - edited 09-14-2007 01:31 PM
@jmcbee wrote:
When I say "duplicate" i mean that I want each group of consecutive \t's to be replaced with just one \t.
Easiest would be to use "scan strings for tokens". It automatically contracts consecutive delimiters into one. Here's a quick example. Maybe you can adapt it to your exact requirements. In this case it also stepts through the entire string only once, while all these consecutive "replace all" operations need to start from the beginning.
In this case it gets each line and then separates all elements with tabs. In this example case, it elmininates any extra \s, \t, comma, hyphen, |.
Modify as needed. I don't really know what you need exactly.
Message Edited by altenbach on 09-14-2007 11:31 AM
09-14-2007 01:43 PM
09-14-2007 01:56 PM
@altenbach wrote:
Sorry, there is a small bug! Please remove the two "=0" wired to [i] (inner and outer loop)!
Since delimiters are diagram constants, we probably don't need those anyway. In any case, even if we wire the "cached?" input, it should be a "!=0" (not equal zero). Check the online help.
09-14-2007 01:56 PM
I agree with Altenbach.
I created an example code, but unless we know what you want to accomplish in the end, I might be sending you in the wrong direction..
Thanks Christian 🙂
09-14-2007 02:08 PM
09-14-2007 02:13 PM
09-14-2007 02:19 PM