I think Alan Moore wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> The last one rocks.
> 
> How would (or wouldn't) variables be used in the patterns?
> 
> (animal (name /?myPattern*/))
> 
> It seems the conflict with ? would cause parsing ambiguities.
> 
> alan


I think between the // would have to be a literal regex, in the same
way that between "" has to be a literal string; if you wanted to use a
variable in a regular expression, you'd have to fall back to a
functional notation, something like

(animal (name ?n&:(match ?n (str-cat ?myPattern "*"))))


---------------------------------------------------------
Ernest Friedman-Hill  
Science and Engineering PSEs        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
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