in reply to Matching two real numbers in a string using regex

Remove the '?' from the '\d*'. It's making it try to match as few digits as possible. /(-?\d*\.?\d+)to(-?\d*\.\d+)/ will work.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;