Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Regex to remove span tags using php [duplicate] codegrepper

<?php 
$content = '<div><span class="smw smw-inline smw-basic smw-ct-default smw-visible" data-symbol="GSD.V" data-type="inline" data-refresh-frequency="5" data-source="live">
<span class="smw-market-data-field smw-field-l1" data-field="l1">0.65</span>
</span></div>';
echo $string =  preg_replace('/<[^>]*>/', '', $content);
echo $new_string = preg_replace('/<span[^>]+>/i', '', $content); 
?>
Comment

PREVIOUS NEXT
Code Example
Php :: show phpinfo just modules 
Php :: php gravity forms display 
Php :: PHP strtok — Tokenize string 
Php :: php string variable 
Php :: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://D:/Program Files/Composer - PHP/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223 
Php :: call satic blco in magento 2 
Php :: how to disable screenshot jquery 
Php :: laravel collection makeHidden 
Php :: multiple ternary operator in php 
Php :: php fake stripe client 
Php :: truncate url rewrites magento 2 database 
Php :: unique string faker laravel 
Php :: remove laravel/octane trminal 
Php :: php create empty array with size 
Php :: foreach and forelse empty 
Php :: make php website https 
Php :: limit wordpress search to title 
Php :: php change get value in a link 
Php :: Edit PHP INI 
Php :: create file in directory php 
Php :: PHP sprintf — Return a formatted string 
Php :: run new oroject laravel with idff port 
Php :: laravel form request validation api 
Php :: laravel casts pivot table 
Php :: laravel sync with attributes 
Php :: Best documentation tools for php 
Php :: laravel 8 search with pagination 
Php :: install php56 with php73 catalina 
Php :: month php written out 
Php :: laravel route regex except 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =