Hi,
I'm not sure with what you want it replaced. The attached Vi searches a
string and replaces it with another.
It uses the Match Pattern, so to find a double, use "[ +-][0-9]+\.[0-9]+" as
regular expression. This will find a space, plus or minus sign, one or more
numbers, a point, and one or more numbers. so it will find only doubles
(+12.123, 3.1, -4.1). Use "[ +-][0-9]+[\.\,][0-9]+" to catch commas as well.
You can adjust the VI to replace it with something you want. E.g. if you
want to replace the doubles with integers, get the 'match substring' output
inside the vi, convert it, and concatente instead of the 'Replace String'.
Use the VI twice to replace doubles and integers.
Good luck,
Wiebe.
"HTMike" wrote in message
news:506500000
008000000DCA30000-1042324653000@exchange.ni.com...
> Hello:
> I have been searching for vis that will search and replace double
> values in a text file. I have made my own that sort of works by taking
> a 1d array of strings I'm using for "keys" and an array of doubles
> that I want to substitute for the line with the key.
> There has GOT to be a packaged one but I can't find one that does all.
> Thanks
[Attachment Advanced String Replace.vi, see below]