Hey Guys,
I'm just not the best at regex, so I decided to ask here for help..
I have a file, containing lots of "opers", and i would like to extract them and put them into an array.
The syntax of each of these opers is..
oper USER {
from {
userhost *@*;
};
password "PASS";
class clients;
flags FLAGS;
};
And the kinda array..
$array = array(
'1' => array ('user' => USER, 'pass' => PASS),
'2' => array ('user' => USER, 'pass' => PASS)
);
What would be the best way to do this?
Thanks,
Ryan