Removed line end $ from regex