Missing information on string patterns

The string patterns article is missing some information.

Frontier pattern %f[set]
Although undocumented in 5.1 manual, it does exist.
According to the 5.3 manual,
a frontier pattern; such item matches an empty string at any position such that the next character belongs to set and the previous character does not belong to set. The set set is interpreted as previously described. The beginning and the end of the subject are handled as if they were the character \0.

Anchors ^ and $
^ at the beginning anchors the match to the beginning of the string, and $ at the end anchors the match to the end of the string.

Empty capture ()
Captures the current string position (a number)

Nested capture
Little detail is given about captures, but I think it is worth mentioning that captures are ordered by their left parenthesis.

%n, for n between 1 and 9; such item matches a substring equal to the n-th captured string

The devhub also states that the %bxy pattern item is a character class, which it is not.

12 Likes

I’ve recently noticed the string patterns article has been updated, and anchors are now mentioned.

However, frontier patterns and empty captures are still not mentioned.

It looks like %n is now documented, however it and %b are incorrectly listed as being quantifiers.

Could these issues be fixed?

Interestingly, it looks like %g has been recently backported.

Could this be added to the table of character classes?