Methods

-ΒΆ

-(s:Str, r:RegExp)

Returns the string with one occurrence of regexp cut out of it. Throws InvalidArgument if s does not contain r.
Source: stdlib.ngs:3831

Returns

Str

Example

"abc01def23" - /[0-9]+/  # "abcdef23"