01-27-2009 12:51 AM
hi all
i have a string and i want to replace all the zeros (numeric '0') at the end of the string to be removed meaning that if the string has zeros at the end i juss simply want all them to be removed. for example if the string is 'asds60dffa890sfaf000' then the output should be 'asds60dffa890sfaf' and if the input is only "12qwadfe00afer0adsf' then the output should be same as the input since it doesnt have any zeros at the end.
01-27-2009 01:03 AM
01-27-2009 01:41 AM
Hi there
you can also use regular expressions. See attachment.
01-27-2009 02:00 AM
01-27-2009 04:45 AM
This site has helped me understand Regular Expressions.
The expression "0*$" means:
01-27-2009 05:28 AM
Be careful with regexpr, because most each editors and IDEs have their own definition and syntax of regexpr.
To be on the safe side right click the "match pattern" function and open the LabVIEW help for details.
01-28-2009 04:11 AM
thnx everyonr all the things have been very helpful
thnx a lot