The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Match Pattern Regular Expression Series: 4 of 5. ...and so it begins....

SercoSteveB
Active Participant

What are the contents of Offset Past Match Array following execution of the VI?

 

Match Pattern 3 of 5.png

 

Match Pattern 3 of 5 Answers.png

Comments
sand5y
Member

Answer - D

Timsrice
Member

D

 

Anchors...

(Straight out of the help page) I think these regular expressions will be useful to me in the future:
^[^ ]+   gives the first word (2 very different uses of ^)

[^ ]+$   gives the last word ($ anchors to the end of the string)

both based allowing anything except the space character (so alternatives to the space character might be considered)

 

I read the help in a different light, looking for information on this question,

so thanks for that!

crossrulz
Knight of NI

D


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Timsrice
Member

To clarify, the help I looked at was
regular_expression_patterns

Matt-A.
Member

D.  I could've used these specials multiple times. 

simonj69
Member

D. Took me a while to suss out how that ^ works. Good exercise.

MrStevenUND
Member

D

SercoSteveB
Active Participant

.Answer: D.  Anchors away! Nice one all.  A pretty useful part of the syntax. Some good stuff from Timsrice above.

levonsg
Member

 D

https://images.youracclaim.com/size/340x340/images/2edb5b1a-9414-44e1-8519-c774fc6dd079/36015_Certificate_Badges_FINAL__1__NI_Instructor_v5.png