1

I need to create a regex which captures all different types of currency such as:

£1
$100,000,000
€25.00
25p       (pence)
25c       (cents)
25m       (million)
25bn      (billion)
25 million
25 billion
£0.25

Currently, I've got the following:

^(([^0]{1})([0-9])*|(0{1}))(\.\d{2})?$

This works for:

£100
200 -- don't want this to be included
$200
€400
350 -- don't want this to be included

Any help please?

4

1 回答 1

0
于 2013-11-12T18:02:08.013 回答