title: :Extract and Replace a substring using Regex in Java
body: <p>I have a string which contains the following substring one or more than one times:</p>
  
  <pre><code>(DynamicContent(abc.xyz))
  </code></pre>
  
  <p>I want to replace this whole substring with a different string which depends on <code>abc</code> and <code>xyz</code>. Therefore, I want to first extract both of them seperately.
  All this has to be done using Java.</p>
  
  <p>Example:<br/>
  Input String : <code>(DynamicContent(box-shadow.css)):0px 2px 10px #330000;</code><br/>
  Output String : <code>-moz-box-shadow:0px 2px 10px #330000;</code> (Depends on the client's browser)<br/></p>
  
  <p>I find out the output string using <code>box-shadow</code> and <code>css</code>.</p>