I already read outer StackOverflow posts and tried the online regex websites.
I want to replace a dot with an underscore:
aab.ccc --> aab_ccc
but in the Matlab code are calculations:
cost11 =aab.ccc*(v1.^3.*t11 + 1.5*v1.*a1.*t11.^2+ a1.^3.*t11./4/4) + aab.ccc.*t11;
The dots .^ .* ./ should not be replaced. My regex looks like this: \.(?!(\^|\*|\/)$), but it still selects all dots. I also use this regex tool: https://regex101.com/r/rMbYHz/306
What is missing in the regex?
\.(?![\^*\/\d])regex101.com/r/qvzkA6/1 also excluding the digits?