partial l-/rsplit regex compliance and code beauty