Re: [PHP] take links from url

2002-01-07 Thread Jimmy

Hi Alawi,

 I want to take string between table/table tags in put it
 in variable 

preg_match (|table([^/table]*)/table|i, $str, $match);

$match[1] will contain the string between table/table

--
Jimmy

Fate shuffles the cards and we play with them



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] take links from url

2002-01-06 Thread Matt Moreton

You could use the following preg statement:

preg_match_all( /table(.*(?=\/table))/, $string, $output,
PREG_SET_ORDER );

This would put all matches of tablesome code, text, whatever/table into
the $output array.  however you would start to have problems when you come
across nested tables.  You'd need something to count how deep your nested if
you have nested table containers.

Regards

Matt.

- Original Message -
From: Alawi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 06, 2002 7:47 AM
Subject: [PHP] take links from url


I want to take string between table/table tags in put it
in variable
How can I do that ?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] take links from url

2002-01-05 Thread Alawi

I want to take string between table/table tags in put it 
in variable 
How can I do that ?