Click or drag to resize
ValidatorIsRegularExp Method
Determines whether source control's value matches the regular expression.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public Validator IsRegularExp(
	Object source,
	string regExp,
	string errorMessage
)

Parameters

source
Type: SystemObject
Control to validate
regExp
Type: SystemString
Regular expression
errorMessage
Type: SystemString
It is returned when control's value doesn't match the regular expression

Return Value

Type: Validator
See Also