Solve complicated string iteration via RegEx

  • Thread starter Thread starter Zero-G. _
  • Start date Start date
Z

Zero-G. _

Guest
Hey

I have to find a solution, for a string problem, which I don't know how.

I have a string, which holds a table name + the field value. The string could look like this:

"Cond(kundenstamm_auftrags.visus_li=0,"",FSTR$(kundenstamm_auftrags.visus_li, "&.##") + " Vis")"

I would have to change this string to:

"Cond(kundenstamm.auftrags.visus_li=0,"",FSTR$(kundenstamm.auftrags.visus_li, "&.##") + " Vis")"

So, means, that I would have to change the first "_" into a "." - But not the variable behind the "."

What also could be is as follows:
"Cond(kundenstamm_auftrags.NthRe=0,"",FSTR$(kundenstamm_auftrags.NthRe, "&.##") + " Nth")

As you can see, in this case there is no "_" at field level. - So how could I achieve this.

THX for every tip

Continue reading...
 
Back
Top