arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 0810.1732cs.IR
收藏

使用正则表达式搜索简介

Introduction to Searching with Regular Expressions

Christopher M. Frenz

摘要:

信息的爆炸性增长和可用性通常使查找与您的需求相关的信息变得越来越困难。当基于关键字的搜索方法不足以描述您所寻求的信息时,这些问题往往会变得更加复杂。在许多情况下,诸如网站URL、电话号码等信息通常可以通过使用文本模式而不是通过关键字更好地识别。例如,通过搜索模式(XXX)XXX-XX(其中X可以是任何数字)可以获得比搜索任何特定电话号码(即关键字方法)更多的电话号码。程序设计语言通常允许通过使用正则表达式来匹配文本模式。本教程将介绍正则表达式编程的基础知识,并介绍如何将正则表达式应用于数据处理任务,如信息抽取和搜索优化。

英文摘要:

The explosive rate of information growth and availability often makes it increasingly difficult to locate information pertinent to your needs. These problems are often compounded when keyword based search methodologies are not adequate for describing the information you seek. In many instances, information such as Web site URLs, phone numbers, etc. can often be better identified through the use of a textual pattern than by keyword. For example, many more phone numbers could be picked up by a search for the pattern (XXX) XXX-XXXX, where X could be any digit, than would be by a search for any specific phone number (i.e. the keyword approach). Programming languages typically allow for the matching of textual patterns via the usage of regular expressions. This tutorial will provide an introduction to the basics of programming regular expressions as well as provide an introduction to how regular expressions can be applied to data processing tasks such as information extraction and search refinement.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑