现代计算机(专业版)
現代計算機(專業版)
현대계산궤(전업판)
MODERN COMPUTER
2014年
14期
35-38
,共4页
正则表达式%Word%搜索%替换
正則錶達式%Word%搜索%替換
정칙표체식%Word%수색%체환
Regular Expression%Word%Text Search%Text Replace
微软在Word 2000及后续所有版本中,提供基于正则表达式的查找替换功能,可对文中符合正则表达式规则的文字实现一次定位选中,并可对查找到的文字按照替换表达式进行批量替换。Word正则表达式提供包括转义符、限定符、定位符、字符集合、分组符、反向引用等元字符功能。 Word正则表达式可结合文本格式功能实现联合查找。
微軟在Word 2000及後續所有版本中,提供基于正則錶達式的查找替換功能,可對文中符閤正則錶達式規則的文字實現一次定位選中,併可對查找到的文字按照替換錶達式進行批量替換。Word正則錶達式提供包括轉義符、限定符、定位符、字符集閤、分組符、反嚮引用等元字符功能。 Word正則錶達式可結閤文本格式功能實現聯閤查找。
미연재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.