^ denotes start of line
$ denotes end of line
find and replace in a text editor using regular expression
find: $
replace: \1)
result: add a ) to the end of every line you action this on.
find: ^
replace: \1(
result: add a ( to the start of every line you action this on.