Here\'s my code, but I can\'t ever trigger the alert.
$(document).ready( function (){
$(\"[id*=\'txtAddress1S\']\").blur(function() {
var pattern
The regex provided above is accepting PO box which is correct. Modified Regex not to accept is:
var pattern = /^ *(?!(#\d+)|((box|bin)[-. \/\\]?\d+)|(.*p[ \.]? ?(o|0)[-. \/\\]? *-?((box|bin)|b|(#|num)?\d+))|(p(ost)? *(o(ff(ice)?)?)? *((box|bin)|b)? *\d+)|(p *-?\/?(o)? *-?box)|post office box|((box|bin)|b) *(number|num|#)? *\d+|(num|number|#)|(?![a-zA-Z0-9\x20'#,]) *\d+)/i;