in reply to a little REGEX help

I think what you have will work if you remove all the <SPACE> characters within the m() expression. That is, m(^\s*EUR/USD\s+,\s*(\d.\d{5})... rather than m(^\s* EUR...

Replies are listed 'Best First'.
Re^2: a little REGEX help
by linuxer (Curate) on Mar 23, 2009 at 23:10 UTC

    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 presentation