Dynamic text color

John Posner jjposner at optimum.net
Wed Jan 6 11:18:35 EST 2010


On Tue, 05 Jan 2010 16:54:44 -0500, Dave McCormick <mackrackit at gmail.com>  
wrote:

> But it is not what I am wanting. I first thought to make it look for a  
> space but that would not work when a single character like "#" is to be  
> colored if there is a "string" of them.  Or if all of the characters  
> between quotes are to be colored.

Regular expressions are good at handling searches like:

* all the characters between quotes
* the two-character string "do", but only if it's a complete word

-John



More information about the Python-list mailing list