Re: [PHP] Search a string between

2001-05-10 Thread Luiz Vitor
nl2br($source); } Luiz Vitor - Original Message ----- From: "Christian Reiniger" <[EMAIL PROTECTED]> To: "Luiz Vitor" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, May 09, 2001 1:46 PM Subject: Re: [PHP] Search a string between

Re: [PHP] Search a string between

2001-05-09 Thread Christian Reiniger
On Wednesday 09 May 2001 16:14, Luiz Vitor wrote: > It's still not working. > I'm using the pattern ([^]*) and I'm getting the first match > correct, but it's not getting all the other matches. [^] means "any character except '<', 'f', 'o' and '>'" You're looking for something like this: $Text

RE: [PHP] Search a string between

2001-05-09 Thread Taylor, Stewart
Sent: 09 May 2001 15:14 To: [EMAIL PROTECTED] Subject: Re: [PHP] Search a string between It's still not working. I'm using the pattern ([^]*) and I'm getting the first match correct, but it's not getting all the other matches. Thanks, Luiz Vitor - Original Messag

Re: [PHP] Search a string between

2001-05-09 Thread Luiz Vitor
TED]> > Sent: Wednesday, May 09, 2001 9:06 AM > Subject: Re: [PHP] Search a string between > > > .* in your patten will match everything It's greedy like perl (unless you > compiled php not to be) > > add a ? and it will make it none greedy > > ^[

Re: [PHP] Search a string between

2001-05-09 Thread Toby Dacre
.* in your patten will match everything It's greedy like perl (unless you compiled php not to be) add a ? and it will make it none greedy ^[]* will not work ^ needs to be in [] to mean not else it means start of string ""Luiz Vitor"" <[EMAIL PROTECTED]> wrote in message 011201c0d87d$57f8ab

Re: [PHP] Search a string between

2001-05-09 Thread Tom Carter
The problem is that it matches the first foo with the first /foo and the second foo witht eh /foo ( andmatches those properly) but it also matches the first foo with the second /foo (thisnk of the logic of the regex). What you need to do is rather than specify any character (.*) specify any charac

[PHP] Search a string between

2001-05-09 Thread Luiz Vitor
Hi... I have a text and, some words of the text have the tags between them. What i'm trying to do is to replace the word between that tags for a url, wich I'll search them in a database and convert to a url. It's working fine when I have only one , but when there are more than one, the script