Get Double value from String
<p>I Have got a String "To be above 10385.29 at 2:25pm".</p>

<p>I want get Double value from this String.</p>

<p>I try with Pattern and Matcher like:</p>

<pre><code>Pattern pattern = Pattern.compile("(\\w+?).(\\w+?)");
Matcher matcher = pattern.matcher(instrumentName);

while (matcher.find()) {
    String key = matcher.group(1);
    String value = matcher.group(2);

    System.out.println("Key : " + key + " value : " + value);
}
</code></pre>

<p>But it works weird and do not find double value.</p>

<p>I want get as result <code>Double value = 10385.29</code></p>

<p>This value can be like <code>xxx.xx</code> or <code>xxxxx.xx</code>. After dot always is two numbers but before can be two, five or more.</p>