in reply to Re^2: Regular expression with capture following a match
in thread Regular expression with capture following a match

The regexp...

m/speed (\\w+)/

...won't capture 'speed'. I don't know where you keep coming up with that idea. If that's how your regular expression looked, it's a mistake. Here is why:

Please read perlrequick and perlop. In perlop you'll want to read the gory details of quote and quote-like parsing. It may take awhile to sink in, but will help to understand the problem you're having with the double backslash.


Dave