title: Reading text with Java Scanner next(Pattern pattern)
body: <p>I am trying to use the Scanner class to read a line using the next(Pattern pattern) method to capture the text before the colon and then after the colon so that s1 = textbeforecolon and s2 = textaftercolon.</p>
  
  <p>The line looks like this:</p>
  
  <p>something:somethingelse</p>