Re: regex to locate text and colorize it in a list

2011-08-10 Thread Roger Eller
On Tue, Aug 9, 2011 at 7:49 PM, John Craig wrote: That should be exactly what the snippet does - maybe I got your test data wrong. An occurrence of the first item in the fourth item is colorised. Sent from my iPhone On 10 Aug 2011, at 00:25, Roger Eller roger.e.el...@sealedair.com wrote:

regex to locate text and colorize it in a list

2011-08-09 Thread Roger Eller
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

Re: regex to locate text and colorize it in a list

2011-08-09 Thread John Craig
Hi, Roger. Here's a quickie - create a stack with two fields ('in' and 'out') put your data into field 'in' and the following into the button script; on mouseUp set itemDel to tab put fld in into tData put the num of lines in tData into tLines repeat with i = 1 to tLines

Re: regex to locate text and colorize it in a list

2011-08-09 Thread Roger Eller
On Tue, Aug 9, 2011 at 6:19 PM, John Craig wrote: Hi, Roger. Here's a quickie - create a stack with two fields ('in' and 'out') put your data into field 'in' and the following into the button script; on mouseUp set itemDel to tab put fld in into tData put the num of lines in tData

Re: regex to locate text and colorize it in a list

2011-08-09 Thread John Craig
That should be exactly what the snippet does - maybe I got your test data wrong. An occurrence of the first item in the fourth item is colorised. Sent from my iPhone On 10 Aug 2011, at 00:25, Roger Eller roger.e.el...@sealedair.com wrote: On Tue, Aug 9, 2011 at 6:19 PM, John Craig wrote:

Re: regex to locate text and colorize it in a list

2011-08-09 Thread Roger Eller
On Tue, Aug 9, 2011 at 7:49 PM, John Craig wrote: That should be exactly what the snippet does - maybe I got your test data wrong. An occurrence of the first item in the fourth item is colorised. Sent from my iPhone On 10 Aug 2011, at 00:25, Roger Eller roger.e.el...@sealedair.com wrote: