• 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: RegEx Commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RegEx Commands


  • Subject: Re: RegEx Commands
  • From: Emmanuel <email@hidden>
  • Date: Tue, 7 Aug 2001 09:57:36 +0200

At 11:25 +0200 6/08/01, Simon Topliss wrote:
>
>I'm having trouble with the syntax for RegEx Commands. The text I want to
>search for is:
>
>"%AI5_BeginRaster
>(Mac HD:Desktop Folder:Bear.tif) 0 XG"
>
>How do I get RegEx to match the above? I only need the actual path that is
>contained in the second line. The lines are separated by a return.

One line with Smile's implementation of the Regular Expressions:

------------------------------------
matchResult of (find text "^%AI5_BeginRaster
(\\([^\\(\\)]+\\))" in s with +class UsGR; given +class by ;:"\\1")
------------------------------------
--> "(Mac HD:Desktop Folder:Bear.tif)"

(the carriage return is just really a carriage return)

HTH
Emmanuel


References: 
 >RegEx Commands (From: Simon Topliss <email@hidden>)

  • Prev by Date: Re: I'm going insane here
  • Next by Date: Re: move folder & copy image ? (newbie)
  • Previous by thread: Re: RegEx Commands
  • Next by thread: Re: RegEx Commands
  • Index(es):
    • Date
    • Thread