quote:
Originally posted by CookieRevised
The request was to replace bbcode color codes, so they don't exist anymore in the string. This means if a gradient is done, that code should be replaced too (with whatever) and not be left in because "irc codes don't support gradients".
I removed them already, didn't I?
quote:
Originally posted by CookieRevised
PS: as said, if hexadecimal color codes are used, Plus! will interpret the first 6 characters, but anything after that is ignored (as long as the string doesn't exceep 53 characters). So add ".{0,53}" after each "[0-9A-Fa-f]{6}" (but they shouldn't be captured of course).
Didn't know that, just thought it used standard colorcodes (a 6 char Hex val)
quote:
Originally posted by CookieRevised
1) "[1-6]?\d" should actually be "[0-9]{1,2}". Numbers from 0 to 99 are allowed.
The numbers are only relevant til a certain amount, after that, the standard is black... But like you said, that doesn't mean it shouldn't be replaced
quote:
Originally posted by CookieRevised
2) the irc codes should contain 2 digits, not 1. 1 digit is possible to use, but may conflict with the actual string you try to color if it begins with a number. Same for backgrounds.
True, and I have no idea how to do this
... unfortunately you can't check during the 'replace' call... But it should be possible, just have to take a closer look into it...
quote:
Originally posted by SpunkyLoveMuff
Yeah, I just needed [c=?] replaced with ·$? and I changed all the [/c] tags to ·$1.
Actually, you need to replace [/c] with ·$, because ·$1 will give you black, not the standard color (But that'll give problems with a number after it)