"/" is a special character in Jess. In particular, two "/" characters delimit a regular expression, which can't actually be used the way you're "using" it. That symbol consisting of a single double-quote is the (admittedly strange) way that Jess has interpreted what you've asked it to do.

In any case, recent versions of the manual take some pains to mention that file paths must absolutely be written as quoted strings in Jess; i.e., this does what you want:

Jess> (explode$ "679196dc49add8e88a07bd9fd34ec2f7  \"/a/b\""))
(679196dc49add8e88a07bd9fd34ec2f7  "/a/b")



On Jul 24, 2009, at 10:41 AM, jo wrote:


Hi,

(length$ (explode$ "679196dc49add8e88a07bd9fd34ec2f7  /a/b"))
3
Jess> (length$ (explode$ "679196dc49add8e88a07bd9fd34ec2f7 .a/b"))
2
Jess> (explode$ "679196dc49add8e88a07bd9fd34ec2f7 .a/b")
(679196dc49add8e88a07bd9fd34ec2f7 .a/b)
Jess> (explode$ "679196dc49add8e88a07bd9fd34ec2f7  /a/b")
(679196dc49add8e88a07bd9fd34ec2f7 " b)
Jess>


I do not understand why this explode$ differently in those two cases.


Kind Regards,
Joe





--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [email protected]'
in the BODY of a message to [email protected], NOT to the list
(use your own address!) List problems? Notify [email protected] .
--------------------------------------------------------------------

---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences, Sandia National Laboratories
PO Box 969, MS 9012, Livermore, CA 94550
http://www.jessrules.com







--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [email protected]'
in the BODY of a message to [email protected], NOT to the list
(use your own address!) List problems? Notify [email protected].
--------------------------------------------------------------------

Reply via email to