Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (23 sloc) 747 Bytes
__NAME__ purpose
delete everything after first null or newline character, effectively "onelining" the input
__NAME__ see also
__NAME__ description
The filter deletes everything after the first null (<literal>\0</literal>)
or newline (<literal>\r</literal> or <literal>\n</literal>) character.
Effectively, it only preserves and returns the first line of input.
__NAME__ notes
For more information on &PERL; Regular Expressions, pattern matching and
character classes, see
__NAME__ online: Filter example
[filter oneline]
Have no fear,
for the first line is dear!