Search code examples
labview

To create a VI which removes all numbers from a string and counts them in LabVIEW


I need to create a VI which removes all numbers from a string and counts them in LabVIEW.

For example, if there's a string "12Anna33" this VI has to transform it into "Anna" and to count the amount of numbers in the string - 4.

How can I do this in LabVIEW?


Solution

  • Here is fixed solution from @Vignesh, which takes into account zeroes + uses conditional terminal for For Loop output:

    Fixed solution

    But, @sweber referred to even easier solution from another thread:

    Easier solution