I'm trying to figure out how to make a regex to match after a period. In example the string 'af24cca.z' would match as 'z', or '24t24.4f' would match as '4f'.
In the script above the desired match in this instance would be '0'.PHP Code:$cookie = 'audio.0_backgroundimages._browserpatch.1';
$my_pattern = '/^(\.){1}/';
list($audio, $backgroundimages, $browserpatch) = split($my_pattern, $cookie);
echo $audio;



Reply With Quote


Bookmarks