i wanted to read a string from text file "MRN 123456789" . This text is actually obtained from or extracted from a pdf file to text file using pjtext jar file . while extracting to text file it will be in its own format .
i have written a code to extract the above number using regular expressions .
But since the text file contains words like "MRN 123456789E0Liste der Positionen" .this is also displayed on the command prompt indicating the string has been matched according to regular expression.
but i want only MRN 123456789 . how will be able to do this .