Yes I noticed the message at the bottom after the examples on php.net about extract.
Ok I should clarify that I only need the very base functionality of this...and
then after I have the answer I'll be able to put it in to a foreach loop. If I try to do both at the same time my head will likely explode('chunks', $brains);
So I took your regex string and applied it to my script (I like having regex merely assigned to a variable since I could reuse the regex (the variable) over and over)...
Code: Select all
$cookie = 'audio.0_backgroundimages._browserpatch.1_chatroom.0_connection.0_css3.0_cursors.0_dhtmleffects._dtd.1_ieccss.1_initialfocus.content_keyboardlayout.designer_mediatype._personality.0_powerkeys.0_sounds.0_theme.classic';
$my_pattern = '/(?:(.+?)\.(.*?))_/';
list($audio, $backgroundimages, $browserpatch, $chatroom, $connection, $css3, $cursors, $dhtmleffects, $dtd, $ieccss, $keyboardlayout, $mediatype, $personality, $powerkeys, $sounds, $theme) = split($my_pattern, $cookie);
echo $audio;
..and I get the error...
split() [function.split]: REG_BADRPT
So
just the regex string is what I'm interested in please. I'm not finding anything useful on the error message itself but then again I'm not sure what you made the filter do exactly? None of the regex sites explain how to select something ***after*** a match which I find odd!
Once I get this working I'll share my newly revised PHP class file. I think it's come a long ways from all the procedural programming I had before.
