LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i match multiple characters (including new line characters) in the "after match" portion of a "match regular expression" function?

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 calibration.xml
-rw-r--r--    1 root     root        70099 Jun 30  2009 calibration.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!

0 Kudos
Message 2 of 12
(4,099 Views)

What is the desired output?

 

Lynn 

0 Kudos
Message 3 of 12
(4,095 Views)

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.

0 Kudos
Message 4 of 12
(4,086 Views)

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

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 12
(4,066 Views)

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.

0 Kudos
Message 6 of 12
(4,058 Views)

Similar to jack47, I used two Match Pattern function in a loop.

 

Lynn 

Message 8 of 12
(4,037 Views)

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.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 9 of 12
(4,030 Views)