08-18-2009 02:14 PM
08-18-2009 02:24 PM
Hello LabVIEW community!
I am constructing a VI that will parse text and i am aware of regular expressions. My text (which is on the front panel and NOT in an array) looks something like this:
calibration.cvs
-rw-r--r-- 1 root root 70096 Jun 30 2009 [0;0mcalibration.xml
-rw-r--r-- 1 root root 70099 Jun 30 2009 [0;0mcalibration.xml.bak
With my VI, i was only able to delete everything in front of calibration on the first line. I have been trying to apply this technique all at once to the entire text but nothing seems to work. Attached is what my VI looks like. I appreciate any knowledge and assistance you may be able to give to me. Thank You!
08-18-2009 02:28 PM
What is the desired output?
Lynn
08-18-2009 02:49 PM
Hello Lynn,
the following is my desired output:
calibration.cvs
calibration.xml.
calibration.xml.bak
As listed above, I was able to output the calibration.cvs just fine, but I can not figure out how to get the other ones to do the same.
08-18-2009 03:30 PM
Sorry, Magnus:
Could you post a screenshot of the VI block diagram? I have an earlier verison of LabVIEW than you. If you could, I'd appreciate it!
Bill
08-18-2009 03:42 PM
Hello Bill,
I'm a new user to this forum so I am unfamiliar with pasting images on here, so what I did was I pasted my screen in MS Word and then attached it to this thread. I hope this helps you help me. Thank you for your assistance Bill.
08-18-2009 03:51 PM
You could do something like this:
08-18-2009 04:16 PM
Similar to jack47, I used two Match Pattern function in a loop.
Lynn
08-18-2009 05:06 PM
Magnus42 wrote:Hello Bill,
I'm a new user to this forum so I am unfamiliar with pasting images on here, so what I did was I pasted my screen in MS Word and then attached it to this thread. I hope this helps you help me. Thank you for your assistance Bill.
No problem, thanks for posting the pic; everyone here is obviously on the ball because there are some cool solutions for you. 🙂
09-12-2009 11:42 PM