firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.24k stars 199 forks source link

Named Capture Group in Substitution missing in 'Quick Reference' #1963

Closed dbareis closed 1 year ago

dbareis commented 1 year ago

The reference says how to name a capture group but not how to use one, a lot of googling and trying later I find that it is angle brackets.

Some of the things I tried before ($<Name>):

  1. $Name
  2. $(Name)
  3. ${Name}
  4. $[Name]
firasdib commented 1 year ago

For which flavor? What is it you feel is missing?

dbareis commented 1 year ago

Oops, you are correct, the help differs by type :-)

I have worked though the available types and it is missing for:

  1. ECMAScript
  2. Java 8

By "missing", I mean that the "Group Constructs" for that type says how to create a group but "Substitution" doesn't say how to use it.

firasdib commented 1 year ago

Thank you, fixed in the next release.