NamedGroupLength

Family: RegularExpression · One form

What it does

NamedGroupLength takes regularExpression (an integer) and group (a string), and answers an integer.

Syntax

NamedGroupLength(regularExpression integer, group string) → integer

Parameters

NameType
regularExpressioninteger
groupstring

Every form returns

integer

Example · generated

DO  Print(NamedGroupLength(1, "value"))  Sync()LOOP

NamedGroupLength is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

19 commands in RegularExpression