If you are using Regular expression validator below is the one
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" ValidationExpression="^[0-9a-zA-Z/]+$" ControlToValidate="TextBox1" runat="server"
ErrorMessage="RegularExpressionValidator"></asp:RegularExpressionValidator>
If you are using javascript below is the sample function containing the expression
<script type="text/javascript">
function ValidateString() {
var value = document.getElementById("TextBox1").value;
var myregexp = new RegExp("[0-9a-zA-Z/]$");
if(myregexp.exec(value) == null)
{
alert("Invalid");
}
else
{
alert("valid");
}
}
</script>