How to Format a string to be a part of URL?
<p>I need to remove all chars that cant be part of urls, like spaces ,&lt;,> and etc.  </p>

<p>I am getting the data from database.<br />
For Example if the the retrieved data is: Product #number 123!</p>

<p>the new string should be: Product-number-123</p>

<p>Should I use regex? is there a regex pattern for that?
Thanks</p>
