in reply to Re^3: guestbook font [colors]
in thread guestbook font [colors]
I'm iterating over my messages in a foreach() loop and splitting the messages up into individual data chunks (data, name, url, and message).
From here, I want to filter the message for color codes (which I'd probably push into an array.
my @array = qw(red blue orange); $message =~ s///; # subs all occurences of [red]test[/red] or [blue] w +oot! [/blue].
A real world look at what the message might be:
How [red]much would[red] could a wood [blue]huck chuck[blue]. If a [re +d]wood chuch could chuck[/red] wood? All the wood that peter pan is m +ade of.
The output is pretty self explanatory which would be the real font color="red", color="blue" tags.
Code tags added by GrandFather
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: guestbook font [colors]
by GrandFather (Saint) on Aug 09, 2006 at 04:37 UTC |