On Thu, 18 Jan 2001, Christian Reiniger wrote:
> On Thursday 18 January 2001 07:40, Nicholas Pappas wrote:
>
> > I was hoping someone could help me with this regular expression...
> >
> > $pattern = "/\[b\](.*)\[\/b\]/Ui";
> > $message = preg_replace($pattern, "\\1", $message);
> >
>
On Thursday 18 January 2001 07:40, Nicholas Pappas wrote:
> I was hoping someone could help me with this regular expression...
>
> $pattern = "/\[b\](.*)\[\/b\]/Ui";
> $message = preg_replace($pattern, "\\1", $message);
>
> The above works for:
> [b]bold text[/b]
>
>
Original Message-
From: Nicholas Pappas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 3:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] preg_replace pain!
I was hoping someone could help me with this regular expression...
$pattern = "/\[b\](.*)\[\/b\]/U
I was hoping someone could help me with this regular expression...
$pattern = "/\[b\](.*)\[\/b\]/Ui";
$message = preg_replace($pattern, "\\1", $message);
The above works for:
[b]bold text[/b]
But does not work for:
[b]bold text
w/
4 matches
Mail list logo