MACSCRPT Archives

July 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Emmanuel <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Sat, 28 Jul 2007 14:51:59 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
At 11:12 PM +1300 7/28/07, Joe Barwell wrote:
>Hello people,
>
>I have a regex question, using the Satimage osax.
>
>I am trying to ignore lines that end with the following:
>
>\tAAA\t

With Satimage osax, I'm afraid your hack is the good solution.

In Smile, you have look-ahead and look-behind assertions, so you can 
write like:

ufind text "(?<!\\tAAA)\\t" etc.

meaning: I want tab, but only if ( (? means, here is the assertion), 
before the tab (that's <), there is not (that's !, otherwise for 
"there is" it's =) tab followed by AAA.

Emmanuel

ATOM RSS1 RSS2