Hi, I don't use regular expressions much but need to do the foolowing in one in dreamweaver. I need to replace all lines starting with: [Edit] or See: How can i do this? Also can i remove blank lines? Thanks
Search for this: (\W)Edit(\W)(.*)(hit shift enter here to insert a return) Code (markup): Replace with nothing. And this: See:(.*)(hit shift enter here to insert a return) Code (markup): Replace with nothing. These searches will completely delete the line, there will be no blank line since you hit shift+enter at the end to insert a return. I tested it with: [Edit] blah blah [Edit] lol lol ok And it replaced to lol ok Make sure you check "Use regular expressions" and "Search in source code"...can't tell you how many times I've forgotten that. Good idea to save the expression for later, too. As for searching for blank lines, I'm not sure.