【发布时间】:2012-03-24 00:33:33
【问题描述】:
我有这个正则表达式:
{([^\]]*)} // any character except ']' but i want it to accept also '\]' this combination of 2chars
例子
'Lorem Ipsum is simply] dummy text' should return => 'Lorem Ipsum is simply' (and this ones does) but
'Lorem Ipsum is simply\] dummy text' => should return all the text because the ']' is escaped
希望有意义
【问题讨论】: