How to take care of inner tag in regex?

前端 未结 0 867
后悔当初
后悔当初 2020-12-19 06:06

I try to parse CSS by regex (PHP preg_match_all) like

([^{]+)\\s*\\{\\s*([^}]+)\\s*}

but the problem is when there is an inner <

相关标签:
回答
  • 消灭零回复
提交回复
热议问题