I've been trying to get a function that simply recognises postcode patterns within a page of text, then put
<postcode>N19 3QN</postcode>
tags around it. I've tried all the examples online, including string replace functions and ereg etc, but can't seem to get it working..
Alternatively does anyone know a good plain English tutorial on this type of thing.
Many thanks in advance.