06-08-2015 02:38 PM
Hello,
i am using Match pattern String Function in Labview to Search the String. the Problem i am getting is Say i have strings in the order
ABC
Test1
Test
If i give Test has Regular Expression to Match, i am getting Matched Output for Test1 , i mean Before Substring is ABC, Match Substring is Test and After Substring is 1 Test. i am lookinh for the 3rd line. i dont have any commas or dot in the end of the string. Please help
Solved! Go to Solution.
06-08-2015 04:16 PM
I would probably use Match Regular expression in this case. Use the regex 'Test\b' which matches the string 'Test' followed by a word boundary (space, end of line, end of string, etc.).
06-09-2015 10:11 AM - edited 06-09-2015 10:12 AM
Well you could have the search look for "Test\n" or "Test\r\n" depending on your format. Then you'll match on a string that has a line that ends in "Test". Of course this would only work if Test is not the last line in the file.
But yeah regular expression would probably be easier.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-25-2015 11:23 AM
Hello All,
thanks for the Help.
Kiran