Regular Expressions 101

Community Patterns

validate_invoiceid_with_yy

1

Regular Expression
PCRE (PHP <7.3)

/
^.*(\/[0-9]{2})$
/

Description

Validate an ivoice number with the last two digit as last 2 year digit

Submitted by ema - 9 years ago