Using the .+? we will get only two records out of the file. Using .*? we would get the correct number, three.<!-- record --> Blah 1 <!-- eorecord --> <h1>Html crap</h1> <!-- record --><!-- eorecord --> <!-- record --> Blah 2 <!-- eorecord -->
Still I think its a bit funny (but not surprising) how similer our posts are... :-)
Yves / DeMerphq
--
When to use Prototypes?
In reply to Re: Re: pattern matching
by demerphq
in thread pattern matching
by silent11
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |