LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-07-2005, 09:08 AM   #1
jilljack
LQ Newbie
 
Registered: Oct 2005
Posts: 16

Rep: Reputation: 0
Angry Parse HTML using PHP


Hi..

Can anyone help me to write a regular expression to avoid all HTML tags except "<a>" tag while parsing the HTML code using PHP?

Thanks
 
Old 11-07-2005, 09:46 AM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 61
You have some good examples at :
http://www.php.net/manual/en/function.preg-replace.php
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP parse error in config.inc.php.in Confusedious Linux - Software 2 11-03-2005 05:08 AM
Parse PHP, not open!! mattp Programming 2 10-10-2005 12:09 AM
My Apache2 fails to parse php-scripts in html pages 3-1415 Linux - Software 6 10-21-2004 05:59 AM
parse HTML file and find keywords ? fnd Programming 8 06-09-2004 12:35 PM
php parse error wujimon Linux - Software 4 03-26-2003 02:37 PM


All times are GMT -5. The time now is 02:43 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration