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
[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:
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
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
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
_