I tried to extract text from html text stored in a db.
This is an example:
<P style="FONT-SIZE: 13px; MARGIN-LEFT: 6px"><FONT color=#073b66><STRONG><A
href="/generic.asp?page_id=p00497">Practice Exams</A> - </STRONG><FONT
color=#000000>ours are the most realistic exam simulations, and the best way to
prepare for your exams. Get detailed correct and incorrect answers and
explanations. Free Flash Cards are included.</FONT></FONT> </P>
If I search “generic” this regex must find it if this text is over the html tag.
Please help
The following MySQL regex string will match all the html tags, so you can strip them out
OR
I know this does not answer your question directly, but if you have access to scripting languages, they normal have built in functions for stripping html tags from text.
eg. in php you can do this…
http://php.net/manual/en/function.strip-tags.php