Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
October 14, 2006, 7:33 pm
rate this thread
hexcolor in a font tag, that has quotes, and remove the quotes. i.e
<font color="ffffff"> should become <font color=ffffff>.
Perhaps I am making it more complex than it needs to be, but I have
broken down the input string into an array of single characters using
preg_split(), and I am iterating through the chars, looking for a quote
followed by a hash. The problem appear to be with the hash. Although it
prints out fine, not amount of escaping the hash seems to allow me to
match it. Instead preg_match() match spaces (obviously because the
veriable I am using to store the '#', is not storing it properly.
Please could someone put me out of my misery by either hinting towards
a simpler way to do it, or just shooting me?
I am sure there are at least 100 different ways of using regex to
achieve what I want, but I can't think how. Perhaps I am just looking
at the wrong functions?