My line looks like this:
"Chitkara DK, Rawat DJY, Talley N. The epidemiology of childhood recurrent abdominal pain in Western countries: a systematic review. Am J Gastroenterol. 2005;100(8):1868-75. DOI."
I want to get letters in uppercase (only as separate words) to the first point to get: DK DJY N But not other characters after, like J DOI .
Here is my piece of code for the Java class. Pattern:
\\b[AZ]{1,3}\\b
Is there a general option in the regex to stop matching after a certain character?
source share