[PHP] preg_match and regular expression

2003-12-08 Thread fred
Hi I have problems with a regular expression. I have a html file like this: Hello somthing And i want to use preg_match to get a list of all the tags in the file: result: $list[0] = Hello $list[1] = somthing I have tryed this: preg_match('/.*(\.*\<\/div\>).*/', $contents, $list)

[PHP] preg_match and regular expression

2003-12-08 Thread fred
Hi I have problems with a regular expression. I have a html file like this: Hello somthing And i want to use preg_match to get a list of all the tags in the file: result: $list[0] = Hello $list[1] = somthing I have tryed this: preg_match('/.*(\.*\<\/div\>).*/', $contents, $list)