<?php $s = "My address\nInt. blabla\nblabla blabla";$s = preg_replace('~Int\.\h*([^\r\n]+)[\r\n]*~', '', $s);echo $s;
Standard input is empty
My address blabla blabla
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!