Discussion:
Search for a regular expression in a 1D array?
(too old to reply)
altenbach
2006-09-13 19:40:08 UTC
Permalink
What do you define as a "row"? Is each row a single array element? Since your array elements are strings, each array element itself could be a multiline|multirow string itself that might need to be analyzed one row at a time. :D
 
To look for patterns:
If you have LabVIEW 8.0 or higher, you can use "Match regular expression". Else you can use "Match Pattern". It really depends how specific you need to be. Are there lines that start with "Date:" but don't contain a formatted date afterwards?
 
To search for array elements starting with simple string "Date:", use "match first string".
altenbach
2006-09-13 21:10:09 UTC
Permalink
krasing wrote:
Anyway, that had a type mismatch error going into the For Loop - source as 1D array of strings, sink as 1D array of double.


<img src="Loading Image...">
"Index array" wired to [i] is never necessary. Your array is auto&nbsp;indexing already, so you can just wire from the tunnel to the match pattern node. You will get one element at a time per iteration in order.
If you want to use the code as you have it, right-click on the input tunnel and select "disable indexing".
Continue reading on narkive:
Loading...