[英]Regular expression to match every occurrence outside brackets?
I have a string: 我有一个字符串:
FROM {oj table1 left outer join table2 on table1.field1 = table2.field1}, table1, table3
How can I match the table1
outside the braces? 如何匹配大括号外的
table1
?
If you only want table1
outside the brackets. 如果你只想在括号外面使用
table1
。
/table1(?=,)/
or 要么
/table1[^\}]+/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.