Richard, et al -- ...and then Richard Harb said... % % $color = '#aabbcc'; % % if (strlen($color) == 7) { % echo ' r: ' . substr($color, 1, 2); [snip]
D'oh! I knew it should be substr but I could never find it! I was up to page 1098 or such and muddling through all of the PCRE doc when I gave up and asked for help :-) Thanks & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
pgp00000.pgp
Description: PGP signature