Regex module

bytes_before

procedure · 1 overloadSource

The bytes a match can consume before its first byte from required; not ok if a match can do without one.

bytes_before :: (
    program: *Program,
    required: [256] bool
) -> ([256] bool, ok: bool)

The bytes a match can consume before its first byte from required; not ok if a match can do without one.

Parameters

program: *Program
required: [256] bool

Returns

[256] bool
ok: bool

See also