Hi,
I have the situation as follow:
I have the HTML document, now I must search a "text" in that HTML document. The text here means only texts outside the HTML tags. I thinked about the regular expression but unfortunately, I can't find out that REG EX.
Can you help me?
Thanks,
Hung.
Regular expression and text in HTML document
Moderator: General Moderators
-
ngolehung84
- Forum Newbie
- Posts: 6
- Joined: Tue Jan 30, 2007 8:45 am
Maybe http://de2.php.net/strip_tags and http://de2.php.net/strpos can do the trick.