find and replace beginning of line code example Example: notepad++ adding-a-word-at-the-beginning-of-every-line? Search for: ^(.+)$ Replace with: "\1"