Re: Coercing ligatures to expanded characters
Re: Coercing ligatures to expanded characters
- Subject: Re: Coercing ligatures to expanded characters
- From: Jacob Small <email@hidden>
- Date: Thu, 12 Jan 2017 13:49:53 -0500
Well, replacing the ligatures appears to me to be the best solution, but I'm not finding anything, so here's the root problem.
The following script is supposed to pull email addresses out of strings:
do shell script "echo '" & (characters of inputString) & "' >" & quoted form of (filepath & "grepTarget.txt")
set theResult to paragraphs of (do shell script "grep -E -o '\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}\\b' " & quoted form of (filepath & "grepTarget.txt"))
this is hanging up on a ligature in the domain name of an email address. Any thoughts on a way to address this?
Sincerely,
Jacob
_______________________________________________
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