combit List & Label 29 - .NET Help
combit.Reporting.Dom Namespace / PropertyInputEditVerification Class / MatchPattern Property
Example


In This Topic
    MatchPattern Property (PropertyInputEditVerification)
    In This Topic
    Gets or sets a regular expression that will be used to validate the input if the edit control loses the focus. If the validation fails, the user receives the ValidationFailedHint.
    Syntax
    'Declaration
     
    
    Public Property MatchPattern As String
    public string MatchPattern {get; set;}
    public:
    property String^ MatchPattern {
       String^ get();
       void set (    String^ value);
    }
    Example
    // check e mail address with regular expression 
    llObjFormEdit.Verification.MatchPattern = "\"^[\\w\\.\\-]+@([\\w\\-]+\\.)*[\\w\\-]{2,63}\\.[a-zA-Z]{2,4}$\"";  
      
    // hint if verification failed  
    llObjFormEdit.Verification.ValidationFailedHint = "\"The email address is not valid.\"";
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also