LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help for a more complicated regular expression

Solved!
Go to solution

Hi everyone,

 

I got another more complicated one here.

 

 

 

I need to split  '+0,+0.00000000E+000, -4.76517000E+001,-4.64744200E+001,-6.18140500E+001,-5.93055600E+001' by ',' into an array without '+0,+0.00000000E+000'.

 

I am using a regular expression as  '[+-]([0-9]+[1-9]+)[E][+]\d' but it failed to, just wondering what is happening there.

 

 Any idea is well appreciated,

 

 

Thanks,

 

+Kunsheng

Message Edited by Kunsheng Chen on 03-05-2009 05:09 PM
0 Kudos
Message 1 of 3
(2,202 Views)
Solution
Accepted by topic author Kunsheng Chen

Why did you start a new thread?!

 

Please continue in the original.

Message 2 of 3
(2,184 Views)

First, don't bother with regular expressions. Use the function Spreadsheet String to Array with a commas as the delimiter, %f as the format string, a 1D array of floats as the array type. Next, delete the first two elements from the results and you're done.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 3 of 3
(2,182 Views)