PO Box Regular Expression Validation

前端 未结 11 2194
攒了一身酷
攒了一身酷 2020-12-05 03:19

Here\'s my code, but I can\'t ever trigger the alert.

$(document).ready( function (){
    $(\"[id*=\'txtAddress1S\']\").blur(function() {
        var pattern         


        
11条回答
  •  鱼传尺愫
    2020-12-05 04:09

    Its worked for me,

    var poRegex = /\bP(ost|ostal)?([ \.]*O(ffice)?)?([ \.]*Box)?\b/i;
    

提交回复
热议问题