Re: limiting numeric runs
Re: limiting numeric runs
- Subject: Re: limiting numeric runs
- From: Emmanuel <email@hidden>
- Date: Thu, 9 Jan 2003 11:25:46 +0100
At 12:47 PM -0500 08/01/03, Paul Skinner wrote:
I need to limit the length of numeric runs in a given text. Does
anyone have a suggestion as to a non-looping solution?
I'm afraid that's a one-liner with a regular expression. If you can
use the Satimage osax:
------------------ untested, sorry
on LimitNumericRuns(inputText, runLengthLimit)
change "([0-9]{4})[0-9]+" into "\\1" in inputText with regexp
end
--------------------------------
I am writing "4" instead of "runLengthLimit" for sake of clarity. You
will change that if you use the handler.
Emmanuel
_______________________________________________
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.