Leia e revise a documentação do Automation Anywhere

Automation Anywhere Automation 360

Fechar conteúdo

Contents (Conteúdo)

Abrir conteúdo

Using regular expression

  • Atualizado: 2021/05/07

    Using regular expression

    Use regular expressions (regex) to create string patterns that help match, locate, or manage text in Java. Together, the literals and special characters define a logical pattern. Use the pattern to compare strings of text to check if the strings match the defined pattern.

    Example: MatchesRegex

    Use MatchesRegex to test the string pattern.

    In the following example, the input pattern starts from the English alphabet, uppercase and lowercase, (A-Z/a-z) and ends with a numeric value.

    
    @Idx(index = "1", type = TEXT)
    @Pkg(label = "Field label", description = "Field description]")
    @MatchesRegex("^[A-Za-z]\w*")
    @NotEmpty
    String cell

    If the pattern does not match, the following message is displayed: Must match pattern.

    Send Feedback (Enviar Feedback)