Hi,
I lost trail, what do you want to do?
You want to convert
From
to this:
From
Or what's the goal?
Cheers,
Tamas
-Original Message-
From: Tim Streater [mailto:t...@clothears.org.uk]
Sent: Sunday, July 24, 2011 8:07 PM
To: PHP General List
Subject: [PHP] Use of
On 24 Jul 2011 at 19:35, Dajka Tamás vi...@vipernet.hu wrote:
I lost trail, what do you want to do?
You want to convert
From
to this:
From
The number of in front of From is not known. I want to be able to add or
remove one.
--
Cheers -- Tim
--
PHP General Mailing List
-
From: Tim Streater [mailto:t...@clothears.org.uk]
Sent: Sunday, July 24, 2011 8:51 PM
To: Dajka Tamás; PHP General List
Subject: Re: RE: [PHP] Use of preg_replace
On 24 Jul 2011 at 19:35, Dajka Tamás vi...@vipernet.hu wrote:
I lost trail, what do you want to do?
You want to convert
From
On 24 Jul 2011 at 19:57, Dajka Tamás vi...@vipernet.hu wrote:
You want to do it in a greater text, I think.
1,$s/^(*From )/\1/
$line = preg_replace ($pattern, $replacement, $line);
Adding one '':
preg_replace('/(^[]+From )/','$1', $line)
Removing one '':
preg_replace('/(^([]+From
On 24 Jul 2011 at 19:57, Dajka Tamás vi...@vipernet.hu wrote:
You want to do it in a greater text, I think.
See below.
1,$s/^(*From )/\1/
$line = preg_replace ($pattern, $replacement, $line);
Adding one '':
preg_replace('/(^[]+From )/','$1', $line)
Removing one '':
5 matches
Mail list logo