Re: Satimage re_compile regex functions
Re: Satimage re_compile regex functions
- Subject: Re: Satimage re_compile regex functions
- From: has <email@hidden>
- Date: Tue, 30 Apr 2002 00:44:01 +0100
Lindsey Dubb wrote:
>
> Every implementation is different. With Satimage you have to use a repeat
>
> loop. Slower, and less convenient, but it does the job...
>
>
Make sure to step at least one character on each loop. Otherwise you can
>
get into an infinite loop if your regular expression can match 0 characters.
>
(This can show up if you're matching empty lines, end of lines, etc.)
Very good point.
>
It's also important to be careful with the meaning of position-based special
>
characters. For example, ^ can match right after the previous match, which
>
may not really be the beginning of a line.
Hrm. Curses, you're right. (Kick me. This is what happens when you don't
think a problem through thoroughly enough.)
Thank goodness somebody was paying attention. Major bummer though.:(
has
--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.