title: Parse line of text after multiline regex pattern
body: <p>I am attempting to parse fields from a pdf file converted to txt via pdfbox. Here is an example of a field I need to extract, "BUYER NAME AND ADDRESS:". These documents often contain translations, and the ":" colon appears a variable number of characters after BUYER NAME AND ADDRESS. Example below.</p>
  
  <p>Txt file..<br>
  BUYER NAME AND ADDRESS / NOMBRE Y<br>
  DIRECCIÓN DEL COMPRADOR:<br>
  Name of buyer here<br>
  Txt continues..</p>
  
  <p>Here is my attempted pattern / scanning code.</p>
  
  <pre><code>Scanner sc = new Scanner(txtFile);
  Pattern p = Pattern.compile("BUYER NAME AND ADDRESS.*:", Pattern.MULTILINE);
  sc.findWithinHorizon(p, 0);
  String buyer = sc.nextLine();
  buyer = sc.nextLine();
  System.out.println("Buyer Name: "+buyer);
  </code></pre>
  
  <p>This works when the text file is english only e.g. BUYER NAME AND ADDRESS: but if there are additional characters or line returns, it fails. How can I fix the pattern?</p>