[英]ignore character within single quotes regex
我試圖匹配一個不在單引號內但在外面的冒號。
說:
SELECT :1 FROM Table 'not this colon : inside single quotes'
它應該只匹配單引號外的冒號。
你可以使用這個正則表達式:
:(?=((?:[^']*'){2})*[^']*$)
RegEx演示
[英]PHP: Regex to ignore escaped quotes within quotes
[英]Regex for replacing character within quotes
[英]How to ignore a single character in RegEx
[英]Regex split by commas - not within parenthesis or single quotes
[英]Regex to replace a string not within quotes (single or double)
[英]R Ignore character within a Regex string
[英]How to ignore \t character inside double quotes using regex?
[英]Regex - Single Word Without Quotes and Multiple Words Within Quotes
[英]regex: get all of a single character, but not when between single quotes
[英]Regex to replace matches but also ignore when matches within quotes
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.