scanbotsdk
    Preparing search index...

    Class PatternContentValidator

    Pattern content validator.

    Index

    Constructors

    Properties

    _type: "PatternContentValidator"
    allowedCharacters: string = ""

    OCR whitelist. Empty string means no restriction. Only characters that are present in the allowedCharacters string will be accepted. For example, if allowedCharacters is set to "ab", the result may only contain characters 'a' and 'b'.

    Default is ""

    matchSubstring: boolean = false

    Whether the pattern should match the whole string or just a substring.

    Default is false.

    pattern: string

    Pattern to match. It can be a simple pattern or a regular expression.

    patternGrammar: PatternGrammar = "WILDCARD"

    Grammar of pattern matching.

    Default is WILDCARD.