3
Reply

Testing regular expression with single quotes giving error

Sanal Rajan

Sanal Rajan

Aug 21 2017 2:15 AM
186
var Reg1= /^(^[a-zA-Z0-9-.,#/()&/'';:~`@#$%^*_+= -]{2,50})*$/;
if (!Reg1.test(txtreg)) {
}
 
This regular cotains single quotes. How to check this regular expression? 

Answers (3)