Is Valid Street Address
/*
Open Intel
Copyright 2011 ISC. All Rights Reserved.
*/
using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Media;
namespace OI.Framework
{
public static class Utility
{
public static bool IsValidStreetAddress(string address)
{
const string exp = @"\d{1,3}.?\d{0,3}\s[a-zA-Z]{2,30}\s[a-zA-Z]{2,15}";
var regex = new Regex(exp);
return regex.IsMatch(address);
}
}
}
Related examples in the same category