Lea y revise la documentación de Automation Anywhere

Automation 360

Cerrar contenidos


Abrir contenidos

Using regular expression

  • Actualizado: 2022/07/11
    • Automation 360 v.x
    • Explorar
    • Espacio de trabajo de RPA

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.

Nota: Regular expression (regex) does not recognize [\b] as a Backspace command. Use \\b to use Backspace instead.

Ejemplo: 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]")
String cell

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

Enviar comentarios