簡體   English   中英

正則表達式說明:(?> [^ <>] +)

[英]Regular Expression explanation: (?>[^<>]+)

/(?>[^<>]+)/應該如何解釋? (PHP RegExp引擎)

謝謝。

(?>        # I had to look this up, but apparently this syntax prevents the regex
           # parser from backtracking into whatever is matched in this group if 
           # the rest of the  pattern fails
   [^<>]+  # match ANY character except '<' or '>', 1 or more times. 
         ) # close non-backtrackable group.

如果您對僅一次模式感興趣,請訪問http://www.regextester.com/pregsyntax.html中 Once-only subpatterns模式部分

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM