Hi,
Can any body help me. I am new in php.I want to trape all rows containing <td> or <td height="15" etc... td attribute >.
$chars = preg_split('/<td *>/i', $mystring);
print_r($chars);
I am using this code but it is not extracting any thing..
How i can do this.
Please Help...
Regular Expression
Moderator: General Moderators
Maybe something like:
There is also a RegEx sub-forum on this site 
Code: Select all
$chars = preg_split("/<td[^<>]*>/", $mystring);Thanx Jank,
But it is not working. I use this
It is working but problem is that it is now not trapping <td> and trapping all td's with attributes like this<td height="16" etc...>. I think problem is of "." it is saying that one character after <td. Can any body tell any symbol that we can use to denote 0 or more character like "." is denoting one character.
Vineet.
But it is not working. I use this
Code: Select all
$chars = preg_split('/<td.*>/i',$mystring);Vineet.