I have an operation that deals with many space delimited strings, I am looking for a regex for the String matches function which will trigger pass if first two strings before first space starts with capital letters and will return false if they are not.
Examples:
"AL_RIT_121 PA_YT_32 rit cell 22 pulse"
will return true as first two substring AL_RIT_121
and PA_YT_32
starts with capital letter A
and P
respectively
"AL_RIT_252 pa_YT_21 mal cell reg 32 1 ri"
will return false as p
is in lower case.