Re: Catch line indetation
| From: | Narcis Garcia | Date: | Sat, 29 Oct 2016 07:51:30 +0000 |
| Subject: | Re: Catch line indetation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-325797@lists.php.net to get a copy of this message | ||
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