The other day I was stumbling into this problem (and newdep: yes I've read the manual now :-) )
As is visible from above, I try to find out if a string "ends with" a 'def' or a 'ghi'. I would expect true as a result, but it seems not to be the case.newLISP v.9.2.10 on Linux, execute 'newlisp -h' for more info.
> (set 'S "abc.def.ghi")
"abc.def.ghi"
> (ends-with S "ghi" 1)
true
> (ends-with S "def|ghi" 1)
nil
>
This however is working:
But isn't the dollarsign a little bit superfluous here? I mean, what is the meaning of 'ends-with'...?> (ends-with S "def$|ghi$" 1)
true
Peter