LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Regular Expressions Question

Solved!
Go to solution

Hello:

I am new to the community, and have a regular expression questions.

In the text list below:

Cholesterol
20
mg

What is the regular expression to match the the 1st Uppercase letter at 1st position of each line?

Is this code corrected /^[A-Z]/i ?

Thanks

Dennis

0 Kudos
Message 1 of 4
(2,556 Views)
Solution
Accepted by topic author Bobby123456

I'm pretty bad with regular expressions but when I do need to work with them I usually use the site below. It has a nice help menu on the side, lets you type in a bunch of test cases, and highlights the results of your regular expression.

 

https://regexr.com/

Matt J | National Instruments | CLA
Message 2 of 4
(2,520 Views)
Solution
Accepted by topic author Bobby123456

regex-example.png

hope this helps

 

am not sure this is the best board to ask the question,

i think it would be better placed (and get more replies) on the main labview board https://forums.ni.com/t5/LabVIEW/bd-p/170,

perhaps someone can move it there?


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 3 of 4
(2,478 Views)

Hello Matt:

The site works very well, thanks.

Dennis

0 Kudos
Message 4 of 4
(2,445 Views)