Find: (.*)?\n(.*)?\n(.*)? Replace: INSERT INTO glossary (key,name,tag,description) VALUES ('$1','$2','','$3');