Jump to content

Allow upper and lowercase


bravo14

Recommended Posts

Hi

 

I have a regex that currently only allows uppercase

$.validationEngineLanguage.allRules["postcodeUK"] = {
	        // UK zip codes
	        "regex": /^([A-PR-UWYZ0-9][A-HK-Y0-9][AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR 0AA)$/,
			"alertText": "* Invalid postcode"
	};

How do I change this to allow lowercase as well?

Link to comment
https://forums.phpfreaks.com/topic/255151-allow-upper-and-lowercase/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.