How are nested capturing groups numbered in regular expressions?

前端 未结 4 2045
栀梦
栀梦 2020-12-04 17:36

Is there a defined behavior for how regular expressions should handle the capturing behavior of nested parentheses? More specifically, can you reasonably expect that differ

4条回答
  •  [愿得一人]
    2020-12-04 18:03

    The order of capturing in the order of the left paren is standard across all the platforms I've worked in. (perl, php, ruby, egrep)

提交回复
热议问题