"Anthony de Vries" wrote:
> When I have the string "testing" and a regular expression "test+ting"
> Labview gives a match substring "testing" and empty before and after
> substrings.
>
> And my question is: Why?
>
> I would think that this behaviour is for the special character "*" and
> that using "+" should only match to strings like "testting" and
> "testtttttting"?
I agree. That's a bug. Good find. Did you report it to NI?
Just to verify, I ran the same test in the Perl 5.6.1 language, which is
designed for applications that use pattern matching expressions heavily. The
Labview Match Pattern regular expression syntax is a small subset of Perl's
syntax but should work identically, in a way that is standard across the many
languages t
hat use the common "regular expression" syntax.
Perl behaved as you would expect. No match was found for "testing", and
matches were found for "testting" and "testttttting".
Joe Czapski
Electronics Engineer
AutoMeasure
Boston, Mass.