Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-01-18 14:16
Flavor·PCRE2 (PHP)

/
(?<=_)(\d+$)
/
gm
Open regex in editor

Description

A simple expression for removing digits from the suffix of a string.

Submitted by Seth F.