Methods

-ΒΆ

-(s:Str, pfx:Pfx)

Return string without the prefix. Throws MatchFail if pfx is MustPfx but s does not start with it.
Source: stdlib.ngs:3623

s

original string

pfx

prefix to get rid of

Returns

s without pfx

Example

"abcde" - Pfx("ab")  # "cde"
"abcde" - Pfx("xy")  # MatchFail exception
"abcde" - MaybePfx("xy")  # "abcde"