extract string using regex in java
<p>I need help in order to extract 2 strings in JAVA using regex from the following string:</p>

<pre><code>"Batch job &lt;jobid&gt; &lt;jobtype&gt; success"
</code></pre>

<p>I need to take out the jobid and job type.
When i put the string from a get() method to an String object I get the <code>&lt;</code> replaced with <code>&amp;lt</code>; which is literal.</p>

<p>How can I compose regex expression to extract the jobid and jobtype from my String?
The strings should be without the <code>&lt;&gt;</code>.</p>

<p>Thanks for your help!</p>
