I have a sting and need to find first character without adjacent duplicates. I wonder how to do it with regexp. Here is what i supposed should it be.
For example for string=aabbbcddg answer is c.
const paragraph='aabbbcddg';
console.log(paragraph.match(/(.)\1{1}/));
or
const paragraph='aabbbcddg';
console.log(paragraph.match(/[.]{1}/));
Can you explain why my solutions don't work?