06-05-2009, 09:05 AM
Example with tok.
Macro
Example with rx. Use flag 4.
Macro
Macro
out
str subject="''pns1'', ''pn, s2'': goto xxx"
;at first separate part after :
int i=findcr(subject ':')
str afterColon
if(i>=0) afterColon.get(subject i+1); afterColon.ltrim; subject.fix(i)
out subject
out afterColon
out "--------"
;then tok
ARRAY(str) a ae
tok subject a -1 "'', " 4 ae
for i 0 a.len
,out "'%s' '%s'" a[i] ae[i]Example with rx. Use flag 4.
Macro
