Re: Coercing ligatures to expanded characters
Re: Coercing ligatures to expanded characters
- Subject: Re: Coercing ligatures to expanded characters
- From: Denis Boyd <email@hidden>
- Date: Thu, 12 Jan 2017 19:14:48 +0000
is there any reason not to add the ligature to the grep search
string?
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-zÆ挜0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}\\b'
" & quoted form of
(filepath &
"grepTarget.txt"))
worked here.
Best,
Denis
On 12/01/2017 18:49, Jacob Small wrote:
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
|
_______________________________________________
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