Regular expression to match brackets

后端 未结 4 1495
清酒与你
清酒与你 2021-01-04 11:37

For a templating engine, I am using regular expressions to identify content under brackets in a string. For example the regex needs to match {key} or or [element

4条回答
提交回复
热议问题