Why are matches of subgroups important?The main reason is that there are times where you want to extract the patterns you match, in addition to making a match.

 
  • 使用圆括号的一个额外好处就是匹配的子串会被保存到一个子组,便于今后使用。
今日热词
目录 附录 查词历史