Re: Catch line indetation

From: Date: Sat, 29 Oct 2016 14:02:56 +0000
Subject: Re: Catch line indetation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-325800@lists.php.net to get a copy of this message
Those two expressions are the only that work: preg_replace('/^(\s*)\S*/','${1}',' <table>...</table>') preg_filter('/^(\s*)\S*/','${1}',' <table>...</table>') Which one of those functions is the best to be used for this case? El 29/10/16 a les 07:52, richard gray ha escrit: > On 28/10/2016 14:15, Christoph M. Becker wrote: >> >> Shouldn't that be >> >> ^( *)[^ ] >> >> instead? >> > or maybe even ..? > > ^(\s*) > > Rich >

« previous php.general (#325800) next »