I have a string with potentially random characters in it. I wanting to replace all instances of a section with wildcard support. Example:
var input = 'abcdef acbdef acdbef';
input = coolFunction(input, 'a*b', '_');
// I want to replace every charachter between an a and the next closest b with _'s
//Output should be '__cdef ___def ____ef'
Can someone tell me how I can do this?