Help with regex - extracting text.
- by Yeti
I have 3 separate strings:
$d = 'Created on November 25, 2009';
$v = 'Viewed 17,603 times';
$h = '389 hits';
Which needs to be converted to:
$d1 = {unix timestamp of November 25, 2009};
$v1 = "17603"; (commas stripped if it exists)
$h1 = "389";
What is the most efficient way to do this (possibly with regex)? Any code snippet would be great.