in reply to Re: Re: newline in pattern matching
in thread newline in pattern matching

You're really close. Try this:
( /dist:.*([\d.]+)/s )
Note that the period, when inside square brackets, is treated as a literal, not as a wildcard.