docs icon indicating copy to clipboard operation
docs copied to clipboard

Problems in backreference construction in regular expressions

Open LisandroSu opened this issue 8 years ago • 3 comments

@Jokacer commented on Wed Aug 15 2018

In "What Backreferences match", in the explanation of the pattern "(?<1> a)(?<1> \ 1b)" ,I think "(?<1>\1b)" should match 1 value in group 1 instead of 0 or 1,is it right?


文档详细信息

⚠ 请勿编辑此部分。 docs.microsoft.com ➟ GitHub 问题链接必须具有此部分。

LisandroSu avatar Aug 15 '18 14:08 LisandroSu

Hi team,

Please check the question reported by the user.

Thanks!

LisandroSu avatar Aug 15 '18 14:08 LisandroSu

Thanks, @LisandroSu, this has been added to the backlog.

JRAlexander avatar Aug 15 '18 16:08 JRAlexander

@Jokacer The description was slightly misleading and is missing the * that makes it 0 or more. But yes, if the * was not included, it would be 1 or more.

Thraka avatar Nov 01 '18 18:11 Thraka