JSL Regular substitution: Replaces the same line | and the following characters with nullSuch as
BPS<4.05|is Missing(BPS)
BPS>=2.75
ab>=1961734|is Missing(ab)
efg<13741
to
BPS<4.05
BPS>=2.75
ab>=1961734
efg<13741
Thanks!
Basic Data Analysis and ModelingWindowsRe: JSL Regular substitution: Replaces the same line | and the following characters with nullThere isn't a need to use Regexes for this, Words + Word should be enough
Names Default To Here(1);
mystr = "\[BPS<4.05|is Missing(BPS)
BPS>=2.75
ab>=1961734|is Missing(ab)
efg<13741
]\";
mylist = Words(mystr, "\!N");
comparisons = Transform Each({line}, mylist,
Word(1, line, "|");
);
result = Concat Items(comparisons, "\!N");