Re: lots of find/replace in text file
Re: lots of find/replace in text file
- Subject: Re: lots of find/replace in text file
- From: Matt Neuburg <email@hidden>
- Date: Tue, 25 Jan 2011 12:22:17 -0800
On Tue, 25 Jan 2011 02:17:46 -0800, Kyle Sluder <email@hidden> said:
>For something more complicated, a simple XML format might be appropriate:
>
><madlib>
>The quick <blank type="adjective" /> fox jumped over the lazy <blank
>type="noun" />
></madlib>
>
>Especially if you want to share the resulting madlib with other
>people, who might then want to reuse the same template. All that
>information is contained in a nice compact file format:
>
><madlib>
>The quick <blank type="adjective">brown</blank> fox jumped over the
>lazy <blank type="noun">dog</blank>
></madlib>
>
>None of this is all that hard to parse, and increases the robustness
>of the app tremendously.
I was, if you recall, gently prodding at the OP's desire for "efficiency" in performing a series of substitutions. You've gone in completely the opposite direction from that - and, I think, rightly so. m.
--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden