Help on Pattern search and replace in uniface 9.6.
Author: lalitpct@gmail.com (lalitpct)
String 1. Unix Command [. $HOME/prj1 SERVER; abc; jkl;Nmsn;] Need to search for "Unix Command [" and then first semicolon (;) after that replace it by X I was able to get postion for "Unix Command [" using scan output, "Unix Command [?" but Not sure how to get first semicolon. String 2. DB PID: 67 DB server: SERVERNAME DB date: Apr 13 2015 12:04:25PM Here also I need to block SERVERNAME which has DB Server: as fixed pattern but dont know how to get end location. Thanks in advance

v_STR = "command[abc;xyz" v_POS1 = $scan(v_STR,"command[")+$length("command[") v_POS2 = $scan(v_STR[v_POS1],";")+v_POS1-1 Ingo



