How do I preg_match (or preg_match_all) to parse out all the digits in a string that start with the letter "v" ??
Here is my string:
$string = 'blah bla bla blahh blah v5.62 blah blah v88.20 blah v19.00';
The desired result:
5.62
88.20
19.00
Here is my code that does not work:
preg_match_all("/v/",$string,$matches);
foreach($matches as $match){
print $match."\n";
}
Any ideas?