>This should do the trick...
>$List =~ /^(?:([\d|\.]+)\*)?(\w+)\/(?:([\d|\.]+)\*)?(\w+)$/;

        Note that this will also pass '12|34.56' as a valid number because
of the '|' in the '[...]'. I think you will really want just '[\d\.]'.

        ---Larry


+------------------------------------------------------------------------+
| Larry Coffin, G.P.H.                                     Watertown, MA |
| http://www.PointInfinity.com/lcoffin/        [EMAIL PROTECTED] |
+------------------------------------------------------------------------+

Hofstadter's Law:
        It always takes longer than you expect, even when you take
Hofstadter's Law into account.


-



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to