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]
>
>
maybe : $pattern = "/\[b\]([.\n]*)\[\/b\]/Ui";.
have you tried it succesfully?
P.S: I am not sure that \n in preg is a newline, you could also try this:
$pattern = "/\[b\]([.".chr(10).chr(13)."]*)\[\/b\]/Ui";.
one of these ...
Cheers,
Maxim Maletsky
-Original Message-
From:
3 matches
Mail list logo