var Reg1= /^(^[a-zA-Z0-9-.,#/()&/'';:~`@#$%^*_+= -]{2,50})*$/;
if (!Reg1.test(txtreg)) {
}
This regular cotains single quotes. How to check this regular expression?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ramesh PalanivelRank #372 · 6.8K reputationPosted Aug 20, 2017, 10:59 PM EDT
Ramesh PalanivelRank #372 · 6.8K reputationPosted Aug 20, 2017, 11:20 PM EDT
Sanal Rajan139 reputationPosted Aug 20, 2017, 11:16 PM EDT