regex to locate text and colorize it in a list

Roger Eller roger.e.eller at sealedair.com
Tue Aug 9 17:21:51 EDT 2011


I have a list of data in a plain table field (not a datagrid).  The format
of the listis like so:

12345 TAB 1234567890 TAB true TAB
/folder/anotherFolder/yetAnotherFolder/FileName_with_UnderScores_and_12345_more_text.zzz
22345 TAB 1234567891 TAB true TAB
/folder/anotherFolder/FileName_with_22345_and_UnderScores_and_more_text.zzz
32345 TAB 1234567892 TAB true TAB
/folder/FileName_with_more_text_than_before_and_32345_and_etc_and_more_text.zzz

I want to locate within the long filename, whatever is in the first column
of the list, and set its foreColor to red. The quantity of underscores will
vary in the filenames, and the text I want to colorize could be at any item
location.  In the example, I want 12345 in the filename to be red.  I'm
thinking some kind of regex / matchText scenario.  Ideas?

~Roger



More information about the Use-livecode mailing list