Regular Expressions 101

Match feet and inches, including fractions or decimals

Open Workspace
  • PCRE (Legacy)
  • Match
0

Regular Expression

/
(?:^(?:(\d+)')?(?:[-| ]*)(?:(\d*(?: ?\d+\/\d+)?|(?:\d*\.\d+)?)?")?$)
/
gmi

Description

Match feet and inches, including fractions or decimals

Submitted by Jeff Harding