Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (23 sloc) 0.747 kB
__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!
Jump to Line
Something went wrong with that request. Please try again.