+---------+---------+------------+-----------+
| Input | Excepted |
+---------+---------+------------+-----------+
| EUR 1.409,00 | 1409 |
| $ 409,05 | 409.05 |
| ¥409.50 | 409.5 |
| CNY 1,000 | 1000 |
+---------+---------+------------+-----------+
The first thought came into my mind is regular expression. I can't write it though. How do you figure this out?