实现这种自动化主要依靠正则表达式,它是用来查找、匹配和分解字符串的一组真正的象形文字。
The power behind much of this automation is the regular expression, a veritable set of hieroglyphics to find, match, and decompose strings.
由于正则表达式将把句点处理为单个字符,因此我们可以轻松地遍历单词列表以查找匹配。
Since regular expressions treat a period as a single character, we can easily walk the word list, looking for matches.
然后,find函数搜索剧集列表以便使用与标题和摘要匹配的简单正则表达式来查找匹配项。
The find function then searches the episode list to find matches using a simple regular expression match on the title and the summary.
应用推荐