Re: RegEx Commands
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