y = [Datum proizvod<PR>nje: <#nnnn PR#> aaa <#trt pr#> <<DATUMPROIZVODNJE>>]
I want to replace the "pr" (all PR,pr,Pr...) with eg "7777" only if that "pr" is not inside<#> or inside <<>>variable "y" should look like:
Datum 7777oizvod<7777>nje: <#nnnn PR#> aaa <#trt pr#> <<DATUMPROIZVODNJE>>I tried this, but it's not good, it's a problem
<#nnnn PR#> and <#trt pr#>... it's two words
... x = y FOR i = 1 TO ALINES( laArray, x ) y = laArray[i] ? y IF ATC("PR",y)>0 n=OCCURS('PR', UPPER(y)) yy=y FOR ix=1 TO n IF (INLIST(GETWORDNUM(yy,ix),"<<","<#")) loop ENDIF yy= STRTRAN(yy,"PR","7777",1,1,3) ENDFOR ? yy ENDIF ...