Regular Expressions 101

Community Patterns

End with digits

1

Regular Expression
PCRE (PHP <7.3)

/
.*?([0-9]+)$
/

Description

Checks if a string ends with digits

Submitted by Peter Krauß - 8 years ago