Great post on PHP’s preg_match regular expressions

Over at smashing magazine, they have a great post on PHP’s preg_match() regular expressions.  They cover a number of advanced topics in light detail, including:

1. Greediness/Laziness

2. Back Referencing

3. Named Groups

4. Word Boundaries

5. Atomic Groups

6. Recursion

7. Callbacks

8. Commenting

See it here!

http://www.smashingmagazine.com/2009/05/06/introduction-to-advanced-regular-expressions/

xhprof php profilier

Worth noting:

XHProf is a hierarchical profiler for PHP. It reports function-level call counts and inclusive and exclusive metrics such as wall (elapsed) time, CPU time and memory usage. A function’s profile can be broken down by callers or callees. The raw data collection component is implemented in C as a PHP Zend extension called xhprof. XHProf has a simple HTML based user interface (written in PHP). The browser based UI for viewing profiler results makes it easy to view results or to share results with peers. A callgraph image view is also supported.

Read more at http://mirror.facebook.com/facebook/xhprof/doc.html