使用Applescript解析此段落

时间:2013-05-06 07:51:17

标签: string applescript

有人知道如何转换这段话

173.252.100.26 abc.com
173.252.100.26 xyz.com
173.252.100.26 uio.com

\\n173.252.100.26\\abc.com\\n173.252.100.26\\xyz.com\\n173.252.100.26\\uio.com\\n

1 个答案:

答案 0 :(得分:1)

set input to "173.252.100.26 abc.com
173.252.100.26 xyz.com
173.252.100.26 uio.com"

set text item delimiters to "\\\\n"
"\\\\n" & paragraphs of input as text & "\\\\n"
据我所知,

Restoring text item delimiters is not necessary