摘要
微软在Word 2000及后续所有版本中,提供基于正则表达式的查找替换功能,可对文中符合正则表达式规则的文字实现一次定位选中,并可对查找到的文字按照替换表达式进行批量替换。Word正则表达式提供包括转义符、限定符、定位符、字符集合、分组符、反向引用等元字符功能。Word正则表达式可结合文本格式功能实现联合查找。
In the Word 2000 and each versions of its successor, Microsoft has provided powerful performance for text find-and-replace function based on regular expression. Using find-and-replace of Word, user can locate and select the text which defined by his regular expression;furthermore, user can also replace all the selected text in bulk with a replacement expression. Microsoft Word has provided a powerful support for the meta character of its regular expression such as escape characters, quantifiers, anchors, character classes, grouping con-structs and back-reference constructs, and so on. Besides, using text find-and-replace combined with the format and style of Word is also a practical function for user.
出处
《现代计算机》
2014年第14期35-38,共4页
Modern Computer
关键词
正则表达式
WORD
搜索
替换
Regular Expression
Word
Text Search
Text Replace