nix, shell, perl, php, mysql and mac os x tips and tricks

Wednesday, July 16, 2008

Regex to match a price with or without the decimal

\d+\.?\d{0,2}?

No comments:

Post a Comment