Text box validation using regular expression in asp.net
<p>I have a textbox and have to use the regular expressions in asp.net </p>

<p>My text should not allow the spaces in first and last place.</p>

<h2>Output should be:</h2>

<p>Valid:
<code>[India Bangalore]</code></p>

<p>Not valid:
<code>[ India Bangalore ]</code></p>

<p>i.e : user can enter the spaces in between the words but not in first position and last position.</p>

<p>If you have solution in JavaScript that is also fine.</p>
