You are here: Re: Wrong Pattern for match_count function « PHP Programming Language « IT news, forums, messages
Re: Wrong Pattern for match_count function

Posted by Stefan Heinrichsen on 05/10/05 12:50

Am Mo 09.05.05 um 23:23 CEST schrieb "Fabian" <newspost@hotmail.com>:

>
> Stefan Heinrichsen wrote:
> > Am Mo 09.05.05 um 16:25 CEST schrieb "Fabian"
> > <newspost@hotmail.com>:
> >
> > > Hi all there,
> > >
> > > Sorry for this newbee question but how comes that the following
> > > pattern: $r = "%<td valign=top><a href=\"([^>]+?)\"(.*?)>%";
> > >
> > > does not return any result[...]
> > >
> > > Example of $pdata:
> > > <td width=80 align=center valign=top><a href="[...]
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > How should this match against "<td valign=top>"?
>
> Thanks for your reply Stefan,
>
> How should it not? Sorry, I am probably wrong, but I am not familiar
> with regexp and reading the rules...does not help me, in this case
>
> I need to distinguish this string:
> "<td valign=top><a href...." by this one
> "<td width=80 align=center valign=top><a href...."
>
> I need to match the first and not the second.

Oh sorry my fault. I don't read you $pdata exactly. Is $pdata a exactly
copy or is it possible that there are any whitespace or somethingelse
you may forgot?

stefan

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация