Version: 7.x.x
Regex Parser
A transform stream that uses a regular expression to split the incoming text upon.
To use the Regex
parser provide a regular expression to split the incoming text upon. Data is emitted as string controllable by the encoding
option (defaults to utf8
).
Arguments
options.regex: RegExp
the regular expression to use to split incoming textoptions.encoding?: string
text encoding for the stream