Pario TechnoBlob
About
Posts
Tag: regexp
Replace specific HTML tags using sed and regular expression
In this post I would like to replace all HTML tags in a HTML file with a tag. # sed -e 's/<embed[^]
>/<strong>/g' filename.html newfile.html And if you would...
Remove blank / empty lines
function removeEmptyLines($string) { return preg_replace("/(^[\r\n]
|[\r\n]+)[\s\t]
[\r\n]+/", "\n", $string); }