Regular Expressions 101

Estract download speed from Ookla Speedtest output

Open Workspace
  • PCRE2 (PHP)
  • Substitution
1

Regular Expression

/
^.*Download:\s{3,5}\K\d{1,3}\.\d{0,2}(?= Mbps)
/
gm

Description

surely can be optimized more, but it does the job and the interested number of lines is fairly low.

Submitted by Anonymous