<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="0.92">
<channel>
	<title>Heuristic Blog</title>
	<link>http://blog.heuristicdesign.co.uk</link>
	<description>Heuristic; Enabling one to find out things for oneself, as ~ teaching. [Gk heurisko discover]</description>
	<lastBuildDate>Tue, 08 Apr 2008 09:55:28 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>PHP Regex Parse Headings Page Navigation</title>
		<description>I'm using headings in the format:

&#60;hx id="foo">Foo&#60;/hx>

Instead of keeping track of an internal page menu by hand, it's easily to dynamically parse the string with a regular expression (assuming you're using level 3 headers):


function create_page_navigation(&$string)
{
	$menu = array();
	$pattern = '/&#60;h3 id="(.+)">(.+)&#60;\/h3>/';
	preg_match_all($pattern, $string, $headings);
	$headings_num = count($headings[1]);
	for ($i = 0; $i < $headings_num; ...</description>
		<link>http://blog.heuristicdesign.co.uk/archives/2008/04/07/php-regex-parse-headings-page-navigation/</link>
			</item>
	<item>
		<title>Student Sound System: Evoke 2XT</title>
		<description>I still buy CDs and up until now brought the essentials out of my collection with me to university, along with my separates system. This proved an inconvenience, so I looked into docking stations but there were some problems:


Not all had radio.
Mostly designed for iPods
Not all had a separate AUX ...</description>
		<link>http://blog.heuristicdesign.co.uk/archives/2008/03/25/student-sound-system-evoke-2xt/</link>
			</item>
	<item>
		<title>Arthur C. Clarke Dies at 90</title>
		<description>Listening to the radio, I heard that there would be a discussion about Arthur C. Clarke on Front Row. I made sure I caught the program, but didn't realise until afterwards that the comments were posthumous.

I discovered 2001 by chance, picking it randomly out of the science-fiction section some years ...</description>
		<link>http://blog.heuristicdesign.co.uk/archives/2008/03/19/arthur-c-clarke-dies-at-90/</link>
			</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.543 seconds -->
<!-- Cached page served by WP-Cache -->
