Regular Expressions 101

Community Patterns

Remove Trailing Number

0

Regular Expression
Python

r"
([a-z-]*\d{3}|[a-z-]*\d{0})(\d$)?
"
gm

Description

Regex for the gvsbuild tool to remove a trailing number from a project name.

Submitted by anonymous - 2 years ago (Last modified 2 years ago)