We have a input text field where need to restrict user to enter combination of < and >. RegExp Used:
var reg = /<[a-z][\s\S]*>/i;
Combinations which is not covering:
<>
</div>
<121343#>
<@34>
<!@#$<>?"|>
I need regexp that validate text string with which has any character/number/special character in-between or before or end with the combination of <>.
Could anyone help me on this?