簡體   English   中英

正則表達式匹配括號外的每個事件?

[英]Regular expression to match every occurrence outside brackets?

我有一個字符串:

FROM {oj table1 left outer join table2 on table1.field1 = table2.field1}, table1, table3

如何匹配大括號外的table1

如果你只想在括號外面使用table1

/table1(?=,)/

要么

/table1[^\}]+/

暫無
暫無

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

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