I have a string like this val str = "luckycore.util.BigNum("0")", the first five character of the string e.g lucky are dynamic and can change while rest of the string is fixed, what I was trying was to get output as
luckyInt(0) i.e replace all charaters except dynamic one with Int and also remove quotes around 0, I tried using replace and substring methods and its working fine for me, but I want to get this output using regex, I tried but nothing is working, someone please help.
one more case is:
input string = richardcore.util.BigNum("0")
output string = richardInt(0)
^(.{5}).*?"(\d+)".*$replace$1Int($2)