quote:
Originally posted by Spunky
quote:
Originally posted by NanaFreak
the regex needs to be changed to this:
js code:
/[\"](.+?)[\"]/gi
it was just placing it around the whole message
so the highlighted line would be:
js code:
Message = Message.replace/[\"](.+?)[\"]/gi, "[c=4]\"$1\"[/c]");
well atleast i think it should work... i did it in PHP =p
Just for my benefit now... how do the square brackets help? I thought they were just for character sets
it makes it go around a set of quotes... where yours would do it around the whole string if there were quotes in it... i dunno how the [] make it work but in php they work...