Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2025-08-14 17:59
Updated·2025-08-14 18:00
Flavor·Python

r"
^(\d\d)\d\d$
"
gm
Open regex in editor

Description

Replaces the last two digits of any four digit number with 99. Useful for replacing chart of account codes for accounting software mapping functionalities. Helpful for ProPay.

Submitted by Eric Higdon