RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details html <a> cut on php
Expression
<a[\s]+[^>]*?.*?>([^<]+|.*?)?<\/a>
Description
for cut links on PHP $text = preg_replace("/<a[\s]+[^>]*?.*?>([^<]+|.*?)?<\/a>/s","",$text);
Matches
<a href="http://www.tss-s.ru/index.php?option=com_content&amp;task=view&amp;id=170&amp;Itemid=75">КАЗАХСТАН</a>
Non-Matches
<a href="http://www.tss-s.ru/index.php?option=com_content&amp;task=view&amp;id=170&amp;Itemid=75">КАЗАХСТАН< /a>
Author Rating: Not yet rated. Sergey Stremidlo
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials