2
A
回答
4
(?> # 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.
任何有興趣的一次性的模式,檢查出部分Once-only subpatterns
在http://www.regextester.com/pregsyntax.html
相關問題
- 1. 正則表達式<>
- 2. 正則表達式(){} [] <>
- 3. 的fail2ban <HOST>正則表達式別名解釋
- 4. 結合正則表達式<br/><img/><p/>
- 5. C#正則表達式模式<id> ....</id>
- 6. 特定字符串格式正則表達式<><><>
- 7. 自定義正則表達式= $〜#№\; < >%/
- 8. Perl正則表達式[] for <>
- 9. [^ <>]的正則表達式
- 10. 正則表達式http:// ... <a>
- 11. Javascript正則表達式在>和<
- 12. 正則表達式<.5 to > 15.900
- 13. 正則表達式< >之間
- 14. 正則表達式替換<>
- 15. 正則表達式PHP - 查找<div></div>標籤
- 16. 獲取最後的</td></tr>正則表達式?
- 17. 正則表達式匹配<Key> .... <Value>圖案
- 18. 正則表達式爲<!--{tag}-->或<! - {tag(string | integer | etc)} - >?
- 19. 在PHP中的正則表達式/ find「<a></a>」
- 20. 正則表達式讀取<title>與</title>
- 21. 正則表達式的<br更換<br style="..."> style="..."/>
- 22. 正則表達式匹配CSS「<property>:<value>」
- 23. 使用正則表達式解析<a href src="">Links</a>出NSString
- 24. 刪除<p><br/></p>與DOMxpath或正則表達式?
- 25. 正則表達式:確定除了<tr>,,</td>或</tr>
- 26. 正則表達式的表達,去除<div class...</div>
- 27. 解釋正則表達式
- 28. 正則表達式解釋
- 29. 正則表達式解釋
- 30. 正則表達式解釋
我不認爲這是一個有效的正則表達式。 – Czechnology 2011-04-05 22:54:37
'?'IS在那裏有效。這是一個原子團體。 – Alex 2011-04-05 22:56:06
+1有趣,從來沒有聽說過。我的正則表達式測試者拋出一個錯誤。 – Czechnology 2011-04-05 23:00:52