Re: How to Do This Without Smile or Satimage
Re: How to Do This Without Smile or Satimage
- Subject: Re: How to Do This Without Smile or Satimage
- From: Rick Gordon <email@hidden>
- Date: Tue, 28 Feb 2012 22:25:50 -0800
OK, this works -- basic regex:
set vCommand to "sed 's/^\\(.*\\)indent\\(.*\\)$/\\1flush\\2/g' <<< " & quoted form of vParaStyleNameIn
Rick Gordon
------------------
At 9:48 PM -0800 2/28/12, Rick Gordon wrote:
>Good question, though I can probably manage with ASCII-aware here.
>
>I've got this working...
>
> set vCommand to "sed 's/indent/flush/g' <<< " & quoted form of vParaStyleNameIn
>
>...but I haven't figured out how to get regexes working in it:
>
> set vCommand to "sed 's/(.+?)indent(.*)/\\1flush\\2/g' <<< " & quoted form of vParaStyleNameIn
>
>...returns the error: "sed: 1: "s/(.+?)indent(.*)/\1flu ...": \1 not defined in the RE"
>
>And I'm just winging it without a proper grounding in sed syntax.
>
>Rick Gordon
>
>------------------
>
>On 2/29/12 at 2:47 PM +1100, Shane Stanley wrote in a message entitled
>"Re: How to Do This Without Smile or Satimage":
>
>>On 28/02/2012, at 11:53 PM, Alex Zavatone wrote:
>>
>>> Awk works from what I remember.
>>
>>> Here are some sed commands
>>
>>Are they both Unicode-aware?
>
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW: http://www.shelterpub.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden