I am trying to match a string that starts with "CMP" with an optional digit and space in front of that. For example, the following should match:
"CMP - some stuff"
"1 CMP"
"5 CMP"
whereas the following should not match:
"xCMP"
"d1 CMP"
"1CMP"
My initial attempt at the regular expression was the following:
"^[0-9]? ?CMP"
This fails on the second string that should not match, so I decided to try this:
"^{[0-9]? ?CMP}"
however this does not match any of the patterns.
Thanks.
LabWindows/CVI 6.0