I have a csv file with number representations of complex numbers.
-0.0272780+88932190i
0.2833029-10293882i
0.1990238+22901020i
0.3009823-22389991i
This is a HUGE file and I would like to translate that into a complex number representation in a C header file.
const Ipp32fc complexes[] = {
{-0.0272780,88932190 },
{ 0.2833029,10293882 },
{ 0.1990238,22901020 }
{ 0.3009823,22389991 },
... // you get the idea
In Find/Replace I have tried
[\+-]$
or
[\+-](+)$
to replace the inner signs with comma then I was going to perform a simple Find/Replace on i
and strip that out.
Can't seem to get the right regex.