Regex module

parse_into

procedure · 1 overloadSource

Like parse, into your own struct: each field takes the named group of the same name, and is a string, integer, float, bool (true / false) or enum (a member's name, any case). A field with no group or a group with no field is a compile error. False if the text does not match or a group's text does not fit its field.

parse_into :: ($R: Type, text: string, out: *$T) -> bool

Like parse, into your own struct: each field takes the named group of the same name, and is a string, integer, float, bool (true / false) or enum (a member's name, any case). A field with no group or a group with no field is a compile error. False if the text does not match or a group's text does not fit its field.

Parameters

$R: Type
text: string
out: *$T

Returns

bool

See also