正则表达式在Word中的应用 |
| |
引用本文: | 李兵哲.正则表达式在Word中的应用[J].电脑与微电子技术,2014(14):35-38. |
| |
作者姓名: | 李兵哲 |
| |
作者单位: | 西安政治学院,西安710068 |
| |
摘 要: | 微软在Word 2000及后续所有版本中,提供基于正则表达式的查找替换功能,可对文中符合正则表达式规则的文字实现一次定位选中,并可对查找到的文字按照替换表达式进行批量替换。Word正则表达式提供包括转义符、限定符、定位符、字符集合、分组符、反向引用等元字符功能。Word正则表达式可结合文本格式功能实现联合查找。
|
关 键 词: | 正则表达式 Word 搜索 替换 |
Implementation of Regular Expression in the Microsoft Word |
| |
Authors: | LI Bing-zhe |
| |
Affiliation: | LI Bing-zhe (Xi'an Politics Institute, Xi'an 710068 ) |
| |
Abstract: | 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. |
| |
Keywords: | Regular Expression Word Text Search Text Replace |
本文献已被 维普 等数据库收录! |
|