Word 查找替換通配符

 These wildcards are handy for finding words that you don't know how to spell.

For example, if you are not sure how to spell receive, you can type rec??ve. Word then locates any word that begins with rec followed by any two characters followed by ve.

Search Operators:

  • ? - Any single character.

    For example, d?g finds digdog, and dug, but not drug and ridge.

  • * - Zero or more characters: finds a word with the specified characters and zero or more characters in place of *.

    For example, des*t finds descentdesertdestinydessert, and destruct and even excludes thecodes - to.

  • < - Beginning of the word.

    For example, <tel finds telemarketingtelephone, and television, but not hotel and retell.

  • > - End of the word.

    For example, ion> finds aggravationinspiration, and institution, but not ionic and bionomics.

  • @ - Preceding one or more: finds one or more of the characters immediately preceding the @ sign.

    For example, ^p@^t finds one or more paragraph break marks followed by a tab mark.

  • [] - One of the specified characters.

    For example, b[aeiu]t finds batbetbit, and but, but not debt and boot.

  • [-] - Any character from the range.

    For example, [a-m]end finds bendfendlend, and mend (the first character in this case is am, or any letter between them), but not rend and end.

  • [!] - Not: finds the text but excludes the characters inside the brackets.

    For example, t[!ae]ll finds till and toll but not tall and tell.

  • [!a-z] - Any single character with the exception of the ones in the range inside the bracket.

    For example, m[!o-z]st finds mast and mist, but not most or must.

  • {n} - Exact number of occurrences: finds the specified number of occurrences of the letter immediately before the {.

    For example, to{2} finds too and tool but not to.

  • {n,} - Minimum number of occurrences: adding a comma after the number tells Word to look for at least that number of occurrences.

    For example, a{4,} finds four or more of the letter a in a row.

  • {n,n} - Minimum and maximum number of occurrences.

    For example, 10{2,3} finds 100 and 1000, but not 10.

  • () - Expression: lets you "nest" search expressions within a search term.

    For example, <(pre)*(ed)> finds presorted and prevented, but not repressed and precedent.

特殊字符

代碼or通配符

示例

任意單個字符(只用於查找框)

?

“藍?公司”可找到“藍天公司”和“藍羚公司”

表達式

( )

“<(pre)*(ed)> ”可查找“presorted”和“prevented”

單詞開頭

“<(inter)”可找到“interesting”和“intercept”,而不會找“splintered”

單詞結尾

“(in)>”可找到“in”和“within”,而不會找“interesting”

任意字符串(單個或多個字符)

*

 “藍*公司”可找到“藍羚公司”和“藍羚花木公司”

指定字符之一

[]

“[記紀]錄”可找到“記錄”和“紀錄”

指定範圍內任意單個字符

[ - ]

[r-t]ight可找到“right”“sight”,必須用升序來表示該範圍

方括號內字符以外的任意單個字符

[!]

“m[!a]st”可找到“mist”和“most”,而不會找“mast”

指定範圍外任意單個字符

[!x-z]

“t[!a-m]st”可找到“tock”和“tuck”,而不會找到“tack”或“tick”

1個以上前一字符或表達式

@

“lo@t”可找到“lot”和“loot”

n 個前一字符或表達式

{ n }

“fe{2}d”可找到“feed”,而不會找“fed”

n個以上前一字符或表達式

{ n, }

“fe{1,}d”可找到“fed”和“feed”

n 到m 個前一字符或表達式

{ n,m }

“10{1,3}”可找到“10”、“100”“1000”

 

發佈了194 篇原創文章 · 獲贊 48 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章