in reply to Re: substitutions with unknown data (\b is \w not \s)
in thread substitutions with unknown data
I insterted a little test to do a printout of the faces to make sure we are using the right data.
I added
And the output wasmy ($username, $message, $date, $ip) = split(/<!!>/, $line); while ($sth->fetch) { $message =~ s|(?<!\S)\Q$face\E(?!\S)| <img src="$location" alt=" +$name"> |gi; print "$face<br>"; }
So the $face data IS right but it's still not doing any of the s/// in the data. Any other suggesitons?*Crying* :) :( :P :O *hug* *flower* ;) *evil* *love* *yawn* 0<- albie *thumb* *angel* *cool* pix action test test: oh pix: emoticon :) test pix: emoticon :) test test: *hug* test: *hug* test: *hug* test: *hug* test: test :) here *hug* test test: test :) here *hug* test
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: substitutions with unknown data (\b is \w not \s)
by tye (Sage) on Mar 28, 2005 at 21:14 UTC |