String, Pattern match
<p>I can build the string like this:</p>

<pre><code>String str = "Phone number %s just texted about property %s";
String.format(str, "(714) 321-2620", "690 Warwick Avenue (679871)");

//Output: Phone number (714) 321-2620 just texted about property 690 Warwick Avenue (679871)
</code></pre>

<p>What I want to achieve is reverse of this. Input will be following string</p>

<p><em>Phone number (714) 321-2620 just texted about property 690 Warwick Avenue (679871)</em></p>

<p>And I want to retrieve, "<em>(714) 321-2620</em>" &amp; "<em>690 Warwick Avenue (679871)</em>" from input</p>

<p>Can any one please give pointer, how to achieve this in Java or Android?</p>

<p>Thank you in advance.</p>
