On Wed, Oct 22, 2008 at 1:05 PM, Gordon Stewart <[EMAIL PROTECTED]> wrote:
> On Thu, Oct 23, 2008 at 1:52 AM, William Piper <[EMAIL PROTECTED]> wrote:
>
>> if(preg_match("/(?:titfw|This is the full word)/i",$line)){
>> blah;
>> }
>> The pipe "|" means "or".
>>
>
> thanks - what does the ?: mean - before the first word ?
>
> I use the ? in other aspects - but not with a semicolon...

(?:   )  is a match that is not remembered, it is more efficient than
using (  ) because preg doesn't need to remember what was matched.

Reply via email to