Re: [flexcoders] Re: RegEx string via cell ItemRenderer to colorize specific characters or a better method?

2009-04-23 Thread Adrian Williams
Hi Tim, This is perfect! It very nicely replaces ALL the instances of the "find" value. Thanks!! Adrian Tim Hoff wrote: Hi Adrian, I came across this function recently, that may suit you needs: *public* *static* *function* StringReplaceAll( source:String, find:String, replacement:S

RE: [flexcoders] Re: RegEx string via cell ItemRenderer to colorize specific characters or a better method?

2009-04-22 Thread Tracy Spratt
Yes, though I am a bit embarrassed to say so, regex syntax is just too arcane for my needs. I need this kind of stuff a few times a year, and just haven't needed to learn regex. I use the split/join solution myself. Tracy Spratt, Lariat Services, development services available _ Fr

Re: [flexcoders] Re: RegEx string via cell ItemRenderer to colorize specific characters or a better method?

2009-04-22 Thread Adrian Williams
Hi Tracy, This is an interesting idea...but you have me at a bit of a lossI was already heading down part of the same path you laid out here...here is my renderer code thus far: First, the column from my ADG: headerText="HVR1 Mutations" headerWordWrap="true" textAlign="left" wordWrap=

RE: [flexcoders] Re: RegEx string via cell ItemRenderer to colorize specific characters or a better method?

2009-04-22 Thread Tracy Spratt
I suggest that you use a labelFunction feeding a renderer that uses htmlText. The label function would simply parse the strings to get the letters, and wrap them in a Font tag specifying the color. This would be very easy. Tracy Spratt, Lariat Services, development services available __