09-08-2010 09:31 PM
Hi,
I have a somewhat general question, is it possible to extract certain "elements" from a file name?
For example: x0 xxx abc 123 xx xxxx.avi (or any type txt, jpg, and etc...).
Assuming that the "abc" is constant throughout the files but the digits are changing (not sequential), can I extract just the "abc 123" (or whatever number it is)?
I know how to strip/build path, but here I don't know what to search since the distance from the beginning is changing and the digits are changing.
Thank you,
Solved! Go to Solution.
09-08-2010 11:30 PM
There are several string function that allow you to search for a string, and break the string into several parts.
Another option is using Regular Expression, yours sound like "abc/s[0-9]{3}", that should return the "abc 123" part.
Ton
09-08-2010 11:37 PM
There are dedicated search functions for strings that you should investigate. This is a basic LabVIEW task.
09-08-2010 11:39 PM
Hi Ton,
lurking the forums before breakfast ? 😄
09-09-2010 01:03 AM - edited 09-09-2010 01:05 AM
Thank you both for the reply.