Re: [PHP-DB] preg_match html tags

2005-03-04 Thread Kathy_A_Wright
php-db@lists.php.net cc: Subject: Re: [PHP-DB] preg_match html tags [EMAIL PROTECTED] wrote: > I am trying to get a string of text in an html page using preg_match. The > text starts after the Purpose tag and ends before the next tag. > When using preg_match it captures

Re: [PHP-DB] preg_match html tags

2005-03-02 Thread Martin Norland
[EMAIL PROTECTED] wrote: I am trying to get a string of text in an html page using preg_match. The text starts after the Purpose tag and ends before the next tag. When using preg_match it captures the first tag on the page and not the one after my starting point. Here is my starting point:

[PHP-DB] preg_match html tags

2005-03-02 Thread Kathy_A_Wright
I am trying to get a string of text in an html page using preg_match. The text starts after the Purpose tag and ends before the next tag. When using preg_match it captures the first tag on the page and not the one after my starting point. Here is my starting point: preg_match("/Purpose\<\/p

[PHP-DB] (preg_match ?

2001-07-26 Thread phpnet
What's wrong with this use of preg_match? $search = "TheName" $data = "TheName,TheAddress,ThePhone" if (preg_match('"/\b'.$search.'\b/i"', $data)) { echo "True"; } else { echo "False"; } I am trying to see if the search name matches exactly a name in the $data. Thanks Dave -- PHP Database Mai

[PHP-DB] preg_match

2001-06-29 Thread olinux o
k I have no idea on this. My code: 8 $begin = "Property Type"; 9 $end = "<"; 10 preg_match("$begin" . "(.*)" . "$end", $str, $data); The error: Warning: Delimiter must not be alphanumeric or backslash in c:\apache\htdocs\index.php on line 10 _