LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find a capital letter in a string.

Hello, I have 10 strings and I need to search every sting for a capital letter. If there is a capital letter in a string I need to put the string in an array of strings. I don't know how to separate a string with a capital letter in it. If there is no capital letter than the string is skipped.  I tried using the Match Pattern function and it didn't help. Thanks in advance. 

0 Kudos
Message 1 of 9
(4,535 Views)

Okay... but what did you use for the pattern?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 9
(4,530 Views)

find upperletter array strings.png

 

Meavy this could help you if I understood well the problem.

0 Kudos
Message 3 of 9
(4,515 Views)

I used [A-Z]+. I'm fairly new to LabView and i saw a guy using that line on YouTube.

0 Kudos
Message 4 of 9
(4,497 Views)

What did you do with the output of the "match pattern" search?  [A-Z]+ should work...

0 Kudos
Message 5 of 9
(4,482 Views)

Yeah that's what I needed. Thank you very much for the reply and help. 🙂 Cheers.

0 Kudos
Message 6 of 9
(4,474 Views)

I think your teacher will laugh at that solution.  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 9
(4,444 Views)
Or... You could convert the string to an array of U8s and look for any value greater than 64 and less than 91, decimal.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 9
(4,420 Views)

There is a function in the Comparison palette called Lexical Class.

 

http://zone.ni.com/reference/en-XX/help/371361H-01/glang/lexical_class/

 

Sorry, couldn't find a youtube video showing how to use it Smiley Tongue

 

Contains Caps Test.png

 

Not the simplest, but as a beginner it teaches for loop, while loop and conditional outputs.


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

Message 9 of 9
(4,364 Views)