MACSCRPT Archives

July 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

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

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

Print Reply
Mime-Version:
1.0
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
From:
Emmanuel <[log in to unmask]>
Date:
Sat, 28 Jul 2007 14:51:59 +0200
In-Reply-To:
<l03130300c2d0c65b202b@[203.173.207.32]>
Content-Type:
text/plain; charset="us-ascii" ; format="flowed"
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
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