<validation-patterns>
	<pattern id = "not-empty" validation-type = "bool" comparison = "true">
		<error-description>Value cannot be an empty string.</error-description>
		<match>
			<![CDATA[\S]]>
		</match>
		<include rid = "trim-ends" />
	</pattern>
	<pattern id = "email-address" validation-type = "bool" comparison = "true">
		<error-description>Unexpected format of email address</error-description>
		<match>
			<![CDATA[^([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)$]]>
		</match>
		<include rid = "trim-ends" />
	</pattern>
	<pattern id = "phone-number" validation-type = "bool" comparison = "true">
		<error-description>Expected format is: "##########".  No spaces, parenthesis, or hyphens.</error-description>
		<match>
			<![CDATA[^\d*$]]>
		</match>
		<include rid = "trim-ends" />
		<include rid = "not-empty" />
	</pattern>

	<pattern id = "web-safe" validation-type = "bool" comparison = "false">
		<error-description>Invalid characters.  Use only standard (not extended) ASCII characters.</error-description>
		<match>
			<![CDATA[[^a-zA-Z0-9._\-\+'\(\)\]\[\)\(\/\{\}\s,\?!:~#@&;%]]]>
		</match>
	</pattern>

	<pattern id = "web-url" validation-type = "bool" comparison = "true" allow-null = "true">
		<error-description>Expected format is (http | https)://[domain]([path/] | [file]).</error-description>
		<match>
			<![CDATA[^(http|https)(:\/{2}[\w]+)([\/|\.]?)([\S]*)]]>
		</match>
		<include rid = "trim-ends" />
<!--		<include rid = "not-empty" />-->
<!--		<include rid = "fix-web-protocol" />-->
	</pattern>	
<!--	
	<pattern id = "trim-begin" validation-type = "fix-web-protocol">
		<match>
			<![CDATA[^\s*]]>
		</match>
		<replace />
	</pattern>
-->
	<pattern id = "trim-begin" validation-type = "replace">
		<match>
			<![CDATA[^\s*]]>
		</match>
		<replace />
	</pattern>
	<pattern id = "trim-end" validation-type = "replace">
		<match>
			<![CDATA[\s*$]]>
		</match>
		<replace />
	</pattern>

	<pattern id = "trim-ends" validation-type = "none">
		<include rid = "trim-begin" />
		<include rid = "trim-end" />
	</pattern>
</validation-patterns>