Regular Expression Questions

studio
regex

#1

Alert me | Edit | Delete | Change type
Question
You cannot vote on your own post
0
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 beginning position of each line?

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

Thanks

Dennis


#2

@More7468, try this regex pattern “\b[A-Z]{1}”. This outputs only letter C.

Note: Correct me if I am wrong with your requirement.

Regards,
Dominic :slight_smile:


#3

Hello Dominic:
I try your regex pattern “\b[A-Z]{1}”, it works to match all uppercase letter on each line.
From time to time, I may have some simple regex questions, would you mind if I contact you?
Thanks a lot of your help.
Dennis

Dominic UiPath Graduate
January 17 |

@More7468, try this regex pattern “\b[A-Z]{1}”. This outputs only letter C.

Note: Correct me if I am wrong with your requirement.

Regards,
Dominic

Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.