Category "lookbehind"

Javascript method to capitalize the first letter of every word and also every word after hyphen or dash

I need a JavaScript method to allows me to convert the first letter of every word in a string to a capital letter like this: mike tyson wayne to Mike Tyson Wayn

Mimicking negative lookbehind to match a pattern not immediately preceded with a specific character in JavaScript regex

I have this regex in Javascript: 0x[A-F0-9]{2}\g I would like to modify that in order to get a match when the previous character IS NOT a \. Something like t