<?php
$p=file_get_contents("n.txt"); $p=str_replace(' ','',$p);
echo '<pre>'.preg_replace("/30\S+/","",$p);