commit | 69860bf2b28f0e14741a8895abdb77b45d1ed55d | [log] [tgz] |
---|---|---|
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | Wed Jan 11 17:21:20 2017 +0000 |
committer | Przemyslaw Szczepaniak <pszczepaniak@google.com> | Thu Jan 12 09:22:24 2017 +0000 |
tree | 601d599bd7aba89a308cbab7cd774c682e424ac2 | |
parent | d2e8a8a4c98852be942358697d2b54a8141c887b [diff] |
Regex support for named capture groups. 3 new methods in Matcher class: group(String), start(String), end(String) that takes the name of named capture group. Definition (?<name>X) and backreferencing (\k<name>) both work fine. Added support for ${name} in replace methods. Test: vogar OldMatcherTest Bug: 19717812 Change-Id: Id6dce9158721917d644adb1a0b88d25ddb000fcd