I'm trying to remove lines matching pattern 'WAN ipv4-address' from textarea '#textarea'
$("#textarea").val().replace(/WAN ipv4-address/g, '')
So I think above will only remove 'WAN ipv4-address' pattern from lines (in fact it doesn't even do this one for me). How to remove lines based on matching pattern ?