Context: I have a csv file containing a products export from prestashop and I need to remove every occurence of any visual composer shortcode inside of it.
I found this regex "/\[(\/*)?vc_(.*?)\]/"
(here) that can help.
Now I'm tring to use sed
with that and I built this one line command but it not working at all (option of s unknown).
sed -i -E "s\/\[(\/*)?vc_(.*?)\]//\g" origin.csv
What am i missing?
Edit: The problem is in the Product Description column: e.g.
[vc_row][vc_column width="1/1"][vc_column_text]
ADULT GRAIN FREE
[/vc_column_text][vc_separator color="grey"][vc_column_text]
RICETTA COMPLETA PER CANI ADULTI DI TUTTE LE RAZZE
[/vc_column_text][vc_separator color="grey"][vc_column_text]
65% DI CARNE FRESCA DI POLLO, FRUTTA & VERDURA
That is full of this [vc_row] and similar. A desired output will be like this:
ADULT GRAIN FREE
RICETTA COMPLETA PER CANI ADULTI DI TUTTE LE RAZZE
65% DI CARNE FRESCA DI POLLO, FRUTTA & VERDURA