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...
Jun 12, 2009 3:33PM
Remove blank / empty lines function removeEmptyLines($string) { return preg_replace("/(^[\r\n]|[\r\n]+)[\s\t][\r\n]+/", "\n", $string); }
Apr 4, 2007 10:32AM
Posts About
© 2007-2020 Pario TechnoBlob
Powered by Axiom