Regular Exception - problem with preg match
- From: "kuka8" <l.frackowiak@xxxxxxxxxxxxxx>
- Date: 17 Jan 2006 00:16:39 -0800
Hello Everybody !
I need to parse a website, but I have a problem with preg_match
function ,
for example, i have a string ...
$string = ' junk<table><b>BINGO</b></table>
junk<table><b>bingo2</b></table>
junk2<table><b>bingo3</b></table>';
preg_match('|<table+*(.*)</table>+|sim', $string $r);
echo $r[0];
echo $r[1];
is not working
How to catch only bingo's ?
I need only content of table tags as each element of array.
I hope You understand my problem , sorry for my english.
if you have any ideas please share with me on group or private
mail l.frackowiak@xxxxxxxxxxxxxxxxxxxxxxxxxxx
.
- Follow-Ups:
- Re: Regular Exception - problem with preg match
- From: Justin Koivisto
- Re: Regular Exception - problem with preg match
- Prev by Date: How to Enable Virtual Directory Support?
- Next by Date: Re: processing a list of items from a textarea
- Previous by thread: How to Enable Virtual Directory Support?
- Next by thread: Re: Regular Exception - problem with preg match
- Index(es):
Relevant Pages
|