Did you notice, that the /x modifier is used? See perlre for details.
The spaces shouldn't be the problem. The whitespaces in the data string should be handled by the \s*, if they all were written correctly; see: EUR[/]USD \s*,s\*
As far as I remember I tested the given regex and it worked after fixing that typo...
update: fixed minor error in presentationIn reply to Re^2: a little REGEX help
by linuxer
in thread a little REGEX help
by Conal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |