http://www.perlmonks.org?node_id=244702


in reply to Re: Simple regex needed
in thread Simple regex needed

He didn't specify whether the number is single digit, so this would be more safe:
/(\d+)/

Replies are listed 'Best First'.
Re: Re: Re: Simple regex needed
by Anonymous Monk on Mar 20, 2003 at 20:29 UTC
    I also forgot to mention that there are other numbers in the file.

    So I need to look through the file and key my hash by using the number from the format I posted earlier.