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 once again Labview community!
 
I know its been a while since you all have replied to my question, which I am very thankful to you all for doing so.  I did find a wonderful solution to my problem with your guidance however.
 
In order to exclude the giberish that came before the word "calibration" i sent it through a string match function, except this time i searched for the word "calibration."  Using this function I was able to output this word along with everything that came after it, which i appended to eachother.

*Note - If i were to search for the characters "0;0m" and output everything after it, the VI would not have ouput the name of the first file named "calibration.cvs" since it is not preceded by "0;0m."

By this method, I was able to get my array (that looked 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

to turn into this:
calibration.cvs
calibration.xml
calibration.xml.bak

Also, in my VI, there was more gibberish that followed the end of my calibration file names that looked something like this "0;0m".  In order to exclude these last few characters, I sent my parsed text once again through a string match function, and I replaced them with an empty string constant and that is how I cleaned up my text.

I hope the labview community finds this information useful. Thanks once again Bill, John, and Jack!
0 Kudos
Message 11 of 12
(1,245 Views)

That's great to hear!

 

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 12 of 12
(1,229 Views)