How can I replace all lines with given text?
I want a regex to do this and that text that needs replacing might start or end with punctuation.
It is good to want things.
However, if you don’t put more effort into your description, you might not be on the receiving end of any advice.
To replace an entire line, you will want to combine the regex concepts for “anchor to beginning of line” with “match 0 or more of any character” then “anchor to end of line”. The Online User Manual Searching/Regex section linked below will help you quickly find those concepts" (search for “anchor” and “any character” and “0 or more”)
The replacement is just the text you want it to be replaced with.