Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-06-04 18:35
Flavor·ECMAScript (JavaScript)

/
.*[a-z\-0-9]+\-([0-9]+).*
/
Open regex in editor

Description

Used to get a value from a class e.g.: [...] class="font-12"[...] This regEx will receive "12" given the content of the class

Submitted by Gabriel R. Sezefredo