- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
$home = "All versions available in Downloads
Latest stable release: ChromeDriver 77.0.3865.40
Beta release of ChromeDriver 78 coming soon
ChromeDriver Documentation";
preg_match('/Latest stable release:.*\?path=([\d.]+)/', $home, $matches);
var_dump($matches);