Regular Expressions 101

Community Patterns

CR with no LF or PG at the end

1

Regular Expression
PCRE (PHP <7.3)

/
.*[\r][^\n|\f]
/

Description

Match lines with CR (Carriege Return) with no LF (Line Feed - New Line) or PG (Page Break) next to it.

Submitted by Hans Mauricio Burbano E - 8 years ago