Regular Expression Questions

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 /[1]/i ?

Thanks

Dennis


  1. A-Z ↩︎

@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:

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.