Web lists-archives.com

Re: [PHP] Catch line indetation




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
> 

preg_replace('^(\s*) ', '${0}', '   <table>...</table>');
Warning: preg_replace(): No ending delimiter '^' found

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php