steveosoule
7/29/2013 - 7:54 PM

Regex to Delete Duplicate Lines

Regex to Delete Duplicate Lines

// http://www.regular-expressions.info/duplicatelines.html
var pattern = new RegExp(/^(.*)(\r?\n\1)+$/);