To download NI software, including the products shown below, visit ni.com/downloads.
1. Overview:
This example shows how to remove the leading zero from a decimal, and display the result as a string
2. Description:
This VI uses the Match Pattern function in order to remove the leading zero. For this purpose, the regular expression is built on special characters "[0-9]+"
- [] Indicates a range when used between digits
- + Matches the longest number of instances of the expression preceding +
See the detailed information of the function to get more information on the special characters
3. Requirements
4. Steps to Implement or Execute Code
5. Additional Information or References
VI Snippet
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.