元字符(Metacharacter),指SHELL直譯器或正則表達式(regex)引擎等電腦程式中具有特殊意義的字符。
在POSIX擴展正則表達式裏[1],定義了14個元字符,它們被作為一般的字符使用時,必須要通過「轉義」(前面加一個反斜槓「\」)來去除他們本身的特殊意義,這些元字符包括:
參考資料
Wikiwand in your browser!
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.