Regular Expressions 101

Community Patterns

Remove Header Rows

0

Regular Expression
PCRE (PHP <7.3)

/
^([^\n\r]*[\r\n]){3}
/
g

Description

Removes the first n rows of a file

Submitted by Raphael Bögel - 7 years ago