|
> > ... and RE with it. > > So you've warmed to regular expressions? That's good. Even simple ones, like "this|that", can add significant power to a search. I always liked, but am a little inteimidated by, RegEx. I just thought that XyWrite's wildcard system (especially as I supplemented it in XyBasic) was easier to use. > > Is the XyWrite/XyScript comparison going to be in a future version? > > I'm particularly interested in the comparison of the two XPL > > syntaxes. > > The difference between new XPL vs. old XPL boils down to three salient points. (1) Plain-text syntax vs. guillemets and other arcane control characters. (2) Ease of use: good-bye 64KB memory limitation, lots of new keywords and special variables to work with. (3) Integration with the operating system. > > I'll give you some examples. Want to read a file (of virtually any size) into a variable? > > ``` > SET text = READFILE("d:\path\myfile.txt") > ``` > > Or read the document in the current tab into a variable? > > ``` > SET text = $DOC > ``` > > Grab Linux directory output for the current file? > > ``` > XV out ls -lA $fp > MSG $out > # then parse it as needed... > ``` > > See your IP address? > > ``` > XV ip = curl -s https://api.ipify.org > MSG $ip > ``` > > As you know, in old XPL you had to jump through a succession of hoops to do these sorts of things, if you could do them at all. Now you've got the power in your hands. > Yeah, at first I was wondering why you didn't put the XPL equivalent, and then I realized that it would not be anything near a one-for-one substitution. So, where there are such substitutions: SET text = abc subs for <<SV01,abc>> and, beautifully, Set summation = 2+4 subs for <<sx01,2+4>> And MSG $var is a superior substitute for BC <<pv01>> or for BX window [w. size and location specs] Q2 BX ne tmp.txtQ2 GT TF <<PV01>> and that's probably wrong I love the simplicity of it, and also the power. Regards, Harry |