How to add a string only after the last match of a regex.replace (JavaScript)
I'm trying to reformat a list. The function matches certain areas of the original string and reformat those into a "properties" section which has to have the string "---" before and after it. ex, input: | name = Malik |…