adjust regex formatting for line lenth