removing a line containing a pattern in sed

i need to use sed to remove an entire line containing a pattern stored in a variable say $var1
this var1 will be a URL and will therefore contain slashes

any help would be greatly appreciated

The pattern can be delimited by any character, the syntax is :

\cregexc

For example (with the character �)

sed '\�http://www.unix.com�d'

If the regex is store in the variable var, you can do (note \ must be doubled because it's inside ") :

sed "\\�${var}�d"

Jean-Pierre.