Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]){4}\d{25}[0-9]{1}\d{12}([1-9]|[1-9][0-9]|[1-9][0-9][0-9])$
/
gm

Description

Validação de código de barras boleto padrão "FEBRABAN - Federação Brasileira de Bancos".

Submitted by Rafaella Cintra - 2 years ago (Last modified a year ago)