Regular Expressions 101

Community Patterns

Pound checker

1

Regular Expression
PCRE (PHP <7.3)

/
[\d|½|⅓|¼|⅔|¾|⅛|⅜|⅝|⅞]{0,}[x| |\-]{0,}[[\d|½|⅓|¼|⅔|¾|⅛|⅜|⅝|⅞]?[ |\-|\/|\.]?]?[\d|½|⅓|¼|⅔|¾|⅛|⅜|⅝|⅞]+[ |\-]*(g|lb|pound|kg)[s]?[^a-z]*
/
i

Description

no description available

Submitted by anonymous - 9 years ago