[英]How can I match the second occurrence of a character with a regular expression?
[英]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.