preg_match() captures previous unmatched non-capturing groups containing capturing groups

后端 未结 0 432
时光说笑
时光说笑 2021-02-04 01:25

I have the following REGEX pattern: ~^(?!$)(?:(?\\d+)y)?(?:(?\\d+)m)?(?:(?\\d+)d)?$~.

Testing it on https://regex101.com/

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