Regex for replace data after starting of small letter

i want to remove all after data first occurrence of small letter:

input: ABCDEcfer, AARfrdfRP
output: ABCDE, AAR

Hi @pankajs3,

Try using this regex and get only first match

image

Thanks,

Hi @pankajs3,

Refer the below expression for regex, so the below expression will give all the matches before a first occurrence of a small letter

[A-Z]+(?=[a-z]+)

2 Likes