"All I needed" was a simple function to do string.replace(/regex/, callback_function) so that I could find some matches in a string and then call my own custom function to return the value to be ...
To get you comfortable using RegEx you should clone this repo and use your text editors ctrl-f search menu. If you press the button that looks like .* then your search will use RegEx. Look over the ...