This question already has an answer here:
- Javascript replace() with case-change 2 answers
I want to convert this text
font-size-18
to this
fontSize18
using Regex. Here is my trail:
let conv = str => str.replace(/\-[a-z]/gi,/[A-Z]/gi);
but it doesn't work, I can do it without Regex. But I want to make it with Regex, can this be done using regex?