LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

match pattern function

Solved!
Go to solution

Hello,

 

Im using the 'match pattern' function in labview.

But when I use the example below it does not work, when changing the '.' to '=' at both entrance it works.

 

Why cant I use a '.' ?

 

stringsplit.JPG

 

 

gr,

 

0 Kudos
Message 1 of 12
(6,373 Views)
Solution
Accepted by topic author darkxceed

Hi,


Use a back slash and dot '\.' for seaching for the string '.' This will solve your problem


Regards,

 

Nitzz 

(Give Kudos to good Answers and Mark it as a Solutoin if your problem is Solved;))

Message 2 of 12
(6,368 Views)

You should read the help.

'.' is a special character which means it matches to every character.

So you can use 'te.t' to match with 'test' as well as 'text'

 

 

Christian

Message 3 of 12
(6,359 Views)

Hi darkxceed,

 

well, you should read the context help for MatchPattern...

Then you should have known that you're using regular expressions - and the dot is a special char in such expressions...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 12
(6,358 Views)

Hi all,

 

But isn't it expalined in the theories that to match a special char, we can use a Backslash befor that??? It works fine though the usage of Dot can be reduced.


Regards,

Nitzz

(Give Kudos to good Answers and Mark it as a Solutoin if your problem is Solved:smileywink:

0 Kudos
Message 5 of 12
(6,352 Views)

I have to excuse myself for missing it in the help.

I have read it but did not clicked on the link so I could see what the specials where.

 

'/.' was/is the solution so thanks!

 

gr,

0 Kudos
Message 6 of 12
(6,344 Views)

Nitzz, for sure you are right. We just added the explanation why it is as it is.

 

 

Christian

Message 7 of 12
(6,338 Views)

Hello sir

 

i saw the VI u post for the matching pattern.

i have a problem with my vi.

i am doing sorting of object using QR code.

meaning there is will specific QR code which should match so that it can be sorted.

 

i have to connect it with my prototype using usb . i am using arduino uno to control my motor

but now in my vi i already did the process of decoding QR code

but now i dont know how to differentiate in between them. what should i do 

any1 can help please

 

in the VI, to be able to decode QR code

i use vision acquisition- vision asistant - qr code found- data

0 Kudos
Message 8 of 12
(5,269 Views)

Your message has nothing to do with the Match Pattern function talked about in this message thread.

 

You need to start a new message thread with your question.

 

"any1" is not a word.  Please don't use "textspeak" in your messages.

0 Kudos
Message 9 of 12
(5,256 Views)
Your question has absolutely nothing to do with this old thread. Please start a new one. And please attach a real VI but not before you've cleaned it up. You also don't say what you are trying to differentiate between.
0 Kudos
Message 10 of 12
(5,255 Views)