|  | Posted by Mirco Blitz on 02/02/05 12:36 
Hi,Use strip_tags() instead of regex.
 
 http://www.php-center.de/en-html-manual/function.strip-tags.html
 
 Greetings
 Mirco
 
 -----Ursprüngliche Nachricht-----
 Von: php [mailto:silviumaghear@programming-pool.com]
 Gesendet: Mittwoch, 2. Februar 2005 09:25
 An: php-general@lists.php.net
 Betreff: [PHP] regular expresion
 
 I want to parse a html file
 for instance
 
 <body>
 <p>aaa jjjj mmmm dddd yyyy ssss</p>
 <b>aaa hhh mmmm dddd yyyy ssss</b>
 <p>aaa eee mmmm dddd yyyy ssss</p>
 <i>aaa kkkk mmmm dddd yyyy ssss</i>
 </body>
 
 and I want to create a regular expresion wich is able to extract entire text
 from enclosed tags WITHOUT a particular word
 for example               eee
 final I want to obtain this result
 
 aaa jjjj mmmm dddd yyyy ssss
 aaa hhh mmmm dddd yyyy ssss
 aaa kkkk mmmm dddd yyyy ssss
 
 Any solution?
 
 
 thank you
 
 Silviu
 
 --
 PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
 http://www.php.net/unsub.php
  Navigation: [Reply to this message] |