The Daily CLAD

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

Re: Match Pattern Regular Expression Series: 1 of 5 ....a real searcher....

SercoSteveB
Active Participant

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

 

Match Pattern 1 of 5.png

 

 

Match Pattern 1 of 5 Answers.png

Comments
nik35324
Member

D

alexderjuengere
Active Participant

answear:

c

d

 

from the labview help: https://zone.ni.com/reference/en-XX/help/371361J-01/glang/match_pattern/

Characters to Find Regular Expression
All uppercase and lowercase versions of volts, that is, VOLTS, Volts, volts, and so on [Vv]
Matt-A.
Member

Same, thought C, then looked up the match pattern VI and learned a few things. 

 

D

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
Tsjabrantes
Member

D...

Tarciso Junior
+55 (11) 996-282-103
Skype: Tarciso.junior2
Email: Tsjabrantes@gmail.com
http://br.linkedin.com/pub/tarciso-junior/23/a83/463
MrStevenUND
Member

D

Timsrice
Member

D

 

got the (C) answer with a regular expression of "Ee" (if the [ ] are missing).

 

got close to (B) by adding up the offsets (but doesn't end right)

answer (A) includes the positions for the [ & ], so I had a go at trying to find these characters: did this with "[\[\]]"

( \: cancels the 'special meaning' of the next character)

 

SercoSteveB
Active Participant

Answer: D. Nice one all.  I don't use Match Pattern enough to remember all of the Regular Expression syntax.  Doing this series, and the next, has reminded me of a few things that are really useful.

levonsg
Member

D

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

D

Sangameshsh
Member

learn't one thinks from this 

1. use {} in regular exp for upper and lower case