Re: regular expressions and mySQL
| From: | Steve Brett | Date: | Fri, 10 Aug 2001 15:48:03 +0000 |
| Subject: | Re: regular expressions and mySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62185@lists.php.net to get a copy of this message | ||
download the mysql manual (i use the pdf version) ...
there's loads of help in there.
Steve
"Joe Sheble )" <JustForMailingLists@wizaerd.com> wrote in message
news:NEBBJIOOOLABHKDFACGHMEPAFAAA.JustForMailingLists@wizaerd.com...
>
>
> I know this would probably be better placed on the mySQL mailing list, but
> alas I do not subscribe to it and am hesitant to do so to ask one
question.
> Enough PHP users use mySQL that perhaps the answer could be found here.
>
> In searching through a text field in a mySQL database, I would like to
> search for a keyword and return that record as a resultset, obvious no?
> However, I do not want the search to return true if the search word or
> phrase falls within an HTML tag contained within the text. The field in
> question will contain some basic HTML tags but I don't want them searched,
> just the freeform text.
>
> What would be the best approach? I'm not all that well versed in regular
> expressions, well let's face it, I probably couldn't put a regular
> expression together if my life depended on it, and any assistance would be
> greatly appreciated.
>
>