RE: [PHP] preg_match

From: Date: Mon, 27 Oct 2008 17:18:13 +0000
Subject: RE: [PHP] preg_match
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-282504@lists.php.net to get a copy of this message
> -----Original Message----- > From: Alex Chamberlain [mailto:php@alexchamberlain.co.uk] > Sent: Monday, October 27, 2008 10:09 AM > To: PHP General list > Subject: [PHP] preg_match > > Hi, > > I don't understand regular expressions at all - I will make an effort > to > learn about them one day, but I need a solution today. I want to use > the > __autoload function, but not for all my class only those that finish in > 'Controller'. So for instance, > > 'ErrorController' should load 'errorcontroller.inc.php' > 'IndexController' should load 'indexcontroller.inc.php' > 'FooBar' should NOT load anything whatsoever. > > Can you help me write an __autoload function please?? http://www.regular-expressions.info Awesome website. You should be a veritable RegEx guru after reading that site for one day. (It'll also tell you what the ^ and $ means, as well as that (?:) group). Todd Boyd Web Programmer

« previous php.general (#282504) next »