• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Satimage re_compile regex functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Satimage re_compile regex functions
      • From: Lindsey Dubb <email@hidden>
  • Prev by Date: Re: Learning Apple Script
  • Next by Date: Re: Receiving mails
  • Previous by thread: Re: Satimage re_compile regex functions
  • Next by thread: Re: Satimage re_compile regex functions
  • Index(es):
    • Date
    • Thread