Post
Topic
Board Development & Technical Discussion
Regex for bitcoin amounts?
by
chetrasho
on 22/05/2011, 17:32:55 UTC

Hi,

I'm writing a PHP script for bitcoins. I need a regex to check if a string is a valid number of bitcoins.

I've been trying stuff like [0-9]{0,8}\.[0-9]{0,8} but I know that's not really right. I suck at regexes...

Any help would be greatly appreciated...

Thanks
TRSH0