in reply to Problem with regex

I tried this ($value) = $line =~ /.*test=(\d+)/; but this does not seem to be working.
In which way does it "seem not to work"? As mentioned by two other monks, it should! As a side note /test=(\d+)/ should be perfectly equivalent to your code...

Replies are listed 'Best First'.
Re^2: Problem with regex
by Jasper (Chaplain) on Feb 03, 2005 at 11:53 UTC
    Re: /.*test=(\d+)/ and /test=(\d+)/ ,of course, these are not entirely equivalent for other values of $line
      Now that I think about it you're right. Sorry for the imprecision...