Using GNU sed:
$ sed -i '/pattern/d' ./file
To remove the lines and keep a copy of the original:
$ sed -i.bak '/pattern/d' ./file
Since the pattern is a regular expression, special regex characters should be escaped. For example, to remove all lines containing example.com:
$ sed -i '/example\.com/d' ./file