06-09-2011 07:12 AM
Please find the attached VI, its pretty simple function but its behaviour is unexpected.
Solved! Go to Solution.
06-09-2011 07:37 AM
Probably not a bug. Maybe a little lacking in the documentation area.
Don't use \ codes display in the Pattern input. Use a normal string.
Your first pattern should be [\r][\n]\*\*Stop\*\*.
Your second pattern should be \*\*Stop\*\*.
06-09-2011 07:46 AM
Thank you.
06-09-2011 07:56 AM
It's not a bug! The Match Pattern function allows to use some special characters such as the "*" that are interpretated from the function like "the rest of the string". If you want the function works properly before these specials characters you have to insert a "\" character to indicate to the function that that is a normal char. See your VI modified to understand how the function works.