Re: text manipulation
Re: text manipulation
- Subject: Re: text manipulation
- From: Dave Johnson <email@hidden>
- Date: Tue, 5 Jun 2001 14:37:59 -0400
At 12:47 PM -0400 6/5/01, email@hidden wrote:
I have a time string as follows "10:56 am". I have been trying to
figure out a way to change "am" to "a.m." or to "a.m", with no luck
: ). Anybody have a clue? Thanks.
John
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users
With the scripting addition "RegEx commands" this can be done as follows:
set thetime to "10:56 am"
set newtime to (REMatch thetime pattern "([0-9]+:[0-9]+)(.)(.)(.)"
using "\\1 \\3. \\4.")
display dialog newtime