我需要解析mdimport (macOS中与聚光灯相关的工具)的输出 mdimport -t -d3 $file 将许多属性和值...dumps到标准输出,包括kMDItemTextContent。#HashTag2 this is the second hash tag.The following hash tag is inside and at the end of a paragraph: #HashTag3 The next hash tag #HashTag4";
kMDItemTitle
我正在regex中开发一个#hashtag解析器。我试图使一个与twitter的标签解析器相同,但在互联网上找不到相同的解析器,所以我正在创建自己的解析器。#inktober2019 -> Valid hashtag.
#2019 -> Not a valid hashtag.当一个标签只包含数字的时候,我就会被困在检测中,而这些数字不应该被检测