The plan
Let's write a class and then create a package definition to distribute it. Our example class will be able to apply an array of regular expressions to an array of input strings.

We will try and follow the PEAR naming conventions, to play nice with the other packages and make the users life simpler.

Meet ... MondoRegex!

<?php
class MondoRegex {
 var 
$_reList = array;
 var 
$_matchList = array();

 function 
MondoRegex($reList "") {}
 function 
setRegexList($reList) {}
 function 
match($inputList) {}
 function 
matchAll($inputList) {}
 function 
getMatches() {}
 function 
getMatchesForKey($reName) {}
 function 
getMatchKeys() {}
}
?>