In order to clean file from html tags i used the following
sed 's/<[^>]*>//g' filename
Right now i need to do the same from php script so i have to use pcre. How to convert?
In order to clean file from html tags i used the following
sed 's/<[^>]*>//g' filename
Right now i need to do the same from php script so i have to use pcre. How to convert?
In perl it is either the same, or you can use the ? modifier (ninimum match)
perl -pe 's/<.*?>//g' file