<?php $text = "150|google.com/|2500\n600|hello_world|1500"; if (preg_match('~\A([0-9]+\|\S*\|[0-9]+)(?:\R(?1))*\z~', $text)){ echo "Valid!"; }
You have javascript disabled. You will not be able to edit any code.