lines to regex alternates