Is there a way to achieve the equivalent of a negative lookbehind in javascript regular expressions? I need to match a string that does not start with a specific set of cha
Use
newString = string.replace(/([abcdefg])?m/, function($0,$1){ return $1?$0:'m';});