C# Class Rolcore.Geography.StringExtensions

Extension methods for string.
显示文件 Open project: Rollins/Rolcore

Public Methods

Method Description
IsInUsaPostalCodeFormat ( this s ) : bool

Verifies that the input is a valid U.S. postal code.

Private Methods

Method Description
CreateUsa5DigitPostalCodeMatcher ( ) : Regex

Creates a regular expression that recognizes a 5-digit postal code.

Method Details

IsInUsaPostalCodeFormat() public static method

Verifies that the input is a valid U.S. postal code.
public static IsInUsaPostalCodeFormat ( this s ) : bool
s this The postal code to validate.
return bool