/
).$
/
gm
) matches the character ) literally (case sensitive)
. matches any character (except for line terminators)
- matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)
$ asserts position at the end of a line