Use Regular Expression for an URL
<p>I have been banging my head for this issue but to no result. </p>

<p>I have a URL like this : </p>



<pre class="lang-none prettyprint-override"><code>http://1.1.1.1:8080/Offers
</code></pre>

<p>Then I click on a <strong>Create</strong> button. It becomes :</p>

<pre class="lang-none prettyprint-override"><code>http://1.1.1.1:8080/newaccount/Country/Region/State/2016/11/12/offer-111111.html
</code></pre>

<p>The <code>2016/11/12/offer-111111</code> portion of the URL keeps changing at each run. </p>

<p>Any ideas how I should use a regular expression from <code>newaccount/Country/Region/State/2016/11/12/offer-111111</code>, so that I could use this after <code>1.1.1.1:8080/</code>, which would mean it would run irrespective of the changes in the URL?</p>