I am not sure how to delimit this. Can someone help?
a href=“kapsner_chiropractic_about.asp” onmou
to
kapsner_chiropractic_about.asp
I am not sure how to delimit this. Can someone help?
a href=“kapsner_chiropractic_about.asp” onmou
to
kapsner_chiropractic_about.asp
hi bonedoc,
you can try this:
set thestring to "a href=\"kapsner_chiropractic_about.asp\" onmou"
set oldDelims to AppleScript's text item delimiters
set text item delimiters to "\""
set theResult to text item 2 of thestring
set AppleScript's text item delimiters to oldDelims
get theResult
or this:
set thestring to "a href=\"kapsner_chiropractic_about.asp\" onmou"
do shell script "echo " & quoted form of thestring & " | sed 's|^.*=\\\"||' | sed 's|\\\".*||'"
D.
Or even this:
set thestring to "a href=\"kapsner_chiropractic_about.asp\" onmou"
tell thestring to tell text ((my (offset of "\"" in it)) + 1) thru -1 to text 1 thru ((my (offset of "\"" in it)) - 1)