You can do this by cut+paste to another RTF editor that supports them, but this does all kinds of horrid things if you want to reimport the text, like mess up tracked changes. Is there something like a plug-in that does this, or some feature that I am missing?
Postscript The PCRE functionality I miss most, from most missed to only rarely missed, are:
- Match against vertical whitespace - Word has some facility here, but it is limited;
- Zero-width expressions;
- Test for Unicode properties;
- Backreferences; and
- Non-greedy matches.
Answer
The wildcards in Microsoft Word are bit like Regular Expressions. This article has more detail.
Standard Regular Expressions compare to Word Regular Expressions as follows:
.
becomes?
.*
becomes*
*
becomes@
- e.g.lo@t
matches lot and loot[]
works the same in both()
works the same in both\
escapes wildcards in both\b
becomes<
and>
for matching word boundaries
No comments:
Post a Comment