透過 pcre:yes 啟用多行搜尋功能
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您也可以將 pcre:yes
新增至搜尋,以使用 RE2 支援的 PCRE 子集進行搜尋。使用 pcre:yes
時,系統會將整個搜尋運算式視為與 Perl 相容的規則運算式。
如果你想在分行後搜尋,這項功能就特別實用。
使用者搜尋{\s+generate_java pcre:yes
時找到
mojom("mojom") {
generate_java = true
而 {\s+generate_java
搜尋時,因為 {
和 generate_java
不在同一行。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2022-08-17 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2022-08-17 (世界標準時間)。"],[[["Searching with `pcre:yes` enables the use of Perl-compatible regular expressions (PCRE) supported by RE2, allowing for more complex search patterns."],["PCRE searches are particularly useful for finding patterns across line breaks, which standard searches may not capture."],["For example, using `pcre:yes` enables searches like `{\\s+generate_java` to find instances where the opening bracket and `generate_java` are on separate lines."]]],[]]