Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-07-23 20:25
Flavor·PCRE (Legacy)

/
(?<!\d)(\d)(?!\d)
/
g
Open regex in editor

Description

Find single digits that are not part of an integer. For example, "27" should not match, but "27.1" will match the "1". "27.11" won't match.

Submitted by Conan Dombroski