title: How to get value from string template in Java
body: <p>I have a String template like this:</p>
  <blockquote>
  <p>&quot;Thanks, this is your value : [value]. And this is your account number : [accountNumber]&quot;</p>
  </blockquote>
  <p>And i have inputs like this:</p>
  <blockquote>
  <p>input 1 : &quot;Thanks, this is your value : 100. And this is your account number : 219AD098&quot;</p>
  <p>input 2 : &quot;Thanks, this is your value : 150. And this is your account number : 90582374&quot;</p>
  <p>input 3 : &quot;Thanks, this is your value : 200. And this is your account number : 18A47&quot;</p>
  </blockquote>
  <p>I want output like this:</p>
  <blockquote>
  <p>output 1 : &quot;[value] = 100 | [accountNumber] = 219AD098&quot;</p>
  <p>output 2 : &quot;[value] = 150 | [accountNumber] = 90582374&quot;</p>
  <p>output 3 : &quot;[value] = 200 | [accountNumber] = 18A47&quot;</p>
  </blockquote>
  <p>How to do that? Maybe using Regex?</p>
  <p>note : the template is not fixed.. the only thing that fixed is [value] and [accountNumber]..</p>