|
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]
|