Re: Help with find text command
Re: Help with find text command
- Subject: Re: Help with find text command
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 1 Aug 2007 15:57:44 -0400
On 8/1/07,
Wallace, William <
email@hidden> wrote:
Mark,
That's all you have to offer? Brute force? ;-}
I know. I need to turn in my Elegant Coders membership card.
Thanks, that will do nicely since it doesn't even need to be that brutal.
The first subgroup of digits will never be more than five and the last
subgroup of digits (since it is the ISBN's check digit) will always be just
a single digit (or it can be the letter x). So I think there are only 25
possible permutations:
Indeed!
Is the ([0-9]|X) syntax okay or is there a more efficient way to say (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, or X)?
You can use just [0-9X] ([0-9Xx] if you want to match both cases of X). The characters between [...] are, in general, the set of possible matches; it's just that the hyphen is treated as a special case so you can enter ranges without having to list all the characters in between.
You only need to break out the | when an alternative is longer than a single character.
--
Mark J. Reed <
email@hidden>
_______________________________________________
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