Regular Expressions 101

Community Patterns

Community Library Entry

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 - 3 years ago (Last modified 3 years ago)