LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scan from string and extract string between delimiter

Solved!
Go to solution

Hello,

 

Basic questions.  Is it possible with the scan from string regular expression to extract the string that are within the specified delimiters.  Here is an example:

 

\\Name of folder 1\Name of folder 2\Name of folder 3\File Name

 

Can the scan from string output the following by specifying the right regular expression:

Name of folder 1

Name of folder 2

Name of folder 3

File Name

 

I have tried \\\\%s\\%s\\%s\\%s but the %s stops at the first white space.

 

Thanks,

 

Michel

0 Kudos
Message 1 of 4
(3,554 Views)

Why wouldn't you just use the Path to Array of Strings function in the File I/O palette?

0 Kudos
Message 2 of 4
(3,544 Views)
Solution
Accepted by topic author Michel_Gauvin

RavensFan suggested the appropriate function for your requirement, however you can also use an alternative, which is 'Spreadsheet String To Array'.

 

Strings from path


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 3 of 4
(3,532 Views)

There are days like this, I guess..... 😞

0 Kudos
Message 4 of 4
(3,513 Views)