ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Regular exp. question...

Hi,
I wrote a basic function which implements a saving  of two text data into  user selected files. The user chooses  one file name and the program should have appended a _CH_B string to the user selected name and saved the second file with that new generated name. For some reason my regular expression part does not work even though i checked the reg. exression on a stand alone engine. Please see my attached program


Message Edited by RSibagatullin on 07-30-2008 07:02 PM
Download All
0 Kudos
Message 1 of 5
(3,377 Views)
I prefer less code. 😉
 
Maybe try something like in the attached. Modify as needed.
 
(Seems oyu want to append, so add a few things inside the small FOR loop. ;))
 
 


Message Edited by altenbach on 07-30-2008 08:49 PM
Message 2 of 5
(3,356 Views)
altenbach,
You are the best!Smiley Wink
0 Kudos
Message 3 of 5
(3,336 Views)
Back to your regular expression problem. The reason you never get a match is the fact that filenames don't typically end in a newline character.
Message 4 of 5
(3,331 Views)
Thanks. I realized that I was supposed to use  $ instead of \n.



0 Kudos
Message 5 of 5
(3,315 Views)