ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Remove and replace Plus (+) character with space using RegularExpression (Regex) and JavaScript<p>Please refer below sample.</p> <p><span style="text-decoration: underline;">HTML</span></p> <div class="demo_block"> <pre class="brush: html">&lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head runat=&#34;server&#34;&gt; &lt;title&gt;&lt;/title&gt; &lt;script type=&#34;text/javascript&#34;&gt; function Remove() { var value = document.getElementById(&#39;txt1&#39;).value; value = value.replace(/[+]/g, &#39; &#39;); alert(value); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;form id=&#34;form1&#34; runat=&#34;server&#34;&gt; &lt;div&gt; Enter Text : &lt;input id=&#34;txt1&#34; type=&#34;text&#34; value=&#34; &#34; /&gt; &lt;input type=&#34;button&#34; value=&#34;Get&#34; onclick=&#34;Remove()&#34; /&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p> <p>I hope this will help you out.</p>https://www.aspforums.net:443/Threads/171714/Remove-and-replace-Plus-character-with-space-using-RegularExpression-Regex-and-JavaScript/https://www.aspforums.net:443/Threads/171714/Remove-and-replace-Plus-character-with-space-using-RegularExpression-Regex-and-JavaScript/Mon, 21 Sep 2015 03:29:18 GMT