Jump to content
Sign in to follow this  
Jim Kring

What is a "topic" of a string in the Match Pattern function?

Recommended Posts

The Special Characters for Match Pattern documentation states:

If ^ is the first character of regular expression, it anchors the match to the offset in string. The match fails unless regular expression matches that topic of string that begins with the character at offset. If ^ is not the first character, it is treated as a regular character.

What does "topic" mean in the above definition. I don't see any other reference to "topic" in the documentation. Does this relate to the algorithm used by the Match Pattern function? Is "topic" a subset of the string?

Share this post


Link to post
Share on other sites

I could easily be wrong, but methinks tis a case of half hatched explaination by the documentation team.

There are some references on the net to regular expression search and replace functions as they pertain to forums and the S&R functions are referred to as applying to strings or topics of strings. Methinks when the LV Match Pattern and regular expression algorithms and docs were made that some of it was lifted from such sources and the doc's didn't get washed properly.

But I could be wrong...

Share this post


Link to post
Share on other sites

Mike: That could be it. FYI -- I've pinged some people at NI about this, too. Hopefully we'll hear back soon.

Share this post


Link to post
Share on other sites

Hi Jim,

The word "topic" in the documentation you reference is simply a misprint. Replace "topic" in that sentence with "portion" and you'll have the correct description of the '^' character.

Sorry for the anticlimactic response...I'll bet you were all ready with a conspiracy theory. :)

-D

P.S. - I have filed a CAR (3VLDERF2) against the LV documentation to get this corrected.

Share this post


Link to post
Share on other sites

Darren: Thanks you for the answer, extra effort, and CAR number. Five more stars, for you :star::star::star::star::star:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.