LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Alphanumeric from string array

I want to extract only the alphanumeric part from the string array that is after the equal sign and also put it back in a array.String array is attached below

 

0 Kudos
Message 1 of 4
(312 Views)

Hi pulkit,

 


@pulkit2031077 wrote:

I want to extract only the alphanumeric part from the string array that is after the equal sign and also put it back in a array.

String array is attached below


No, there is no string array. There is just a JPG image…

 

What is "alphanumeric" in your definition? Does it include the opening bracket? Does it include the asterisk/plus signs? What about the semicolon?

What do you want to "put back in a array"? Which array?

 

Suggestion:

  • You can use the MathPattern function on each string array element to split at the "=" char. Or use the SpreadsheetStringToArray with "=" as separator…
  • Use a loop to process all array elements…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(289 Views)

One way to implement this is using a FOR loop. it automatically "indexes" the input array passing one item at each iteration

 Inside the loop, the string uses the Match patthern to find for the string after the equal sign. 

The remaining string, will use the Match pattern again to extract the string BEFORE the sign ";"

 

THe output of the loop will automatically index the strings producing the output string 

LVNinja_0-1703082492533.png

 

0 Kudos
Message 3 of 4
(208 Views)

Few Tips;

Use String Match Pattern to extract the Values After (=) Sign.

Convert the Extracted String and Convert to byte array which will give you the ASCII values of the String Characters.

Use Loops and Case structure to concatenate only Alphabets and Numbers (Alphanumeric).

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 4
(200 Views)