TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Mark on February 24, 2004, 03:20:32 PM

Title: regex library for Autolisp
Post by: Mark on February 24, 2004, 03:20:32 PM
Has anyone ever come across a regex library for Autolisp? Call me crazy but I am thinking about writing one. Do you think it would be worth while? Would you like to help?

regex = regular expression


Links:
http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?regular+expression
http://www.anaesthetist.com/mnm/perl/regex.htm
http://www.digitalamit.com/article/regular_expression.phtml
Title: regex library for Autolisp
Post by: JohnK on February 24, 2004, 05:01:34 PM
*blink* ...huh?

I thought you already wrote something like that.
Title: regex library for Autolisp
Post by: Mark on February 24, 2004, 05:04:28 PM
Nope, not yet.
Title: regex library for Autolisp
Post by: SMadsen on February 24, 2004, 05:28:40 PM
Isn't WCMATCH a regex?
Title: regex library for Autolisp
Post by: Mark on February 24, 2004, 05:43:26 PM
Quote from: SMadsen
Isn't WCMATCH a regex?

Yes but very limited. I want to create a library with more functionality. Not on the order of Perl of couse, but something like that.

Here is some of what Perl can do:
http://www.perldoc.com/perl5.8.0/pod/perlre.html
Title: regex library for Autolisp
Post by: CAB on February 24, 2004, 07:26:36 PM
Mark,
You probably saw this already.

acet-str-find (http://www.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=37d96097.122624514%40judy&rnum=1&prev=/groups%3Fq%3Dregex%2Bgroup:autodesk.autocad.customization%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D37d96097.122624514%2540judy%26rnum%3D1)
Title: regex library for Autolisp
Post by: Keith™ on February 24, 2004, 08:29:36 PM
Ok, I suppose that we should want to help??????

I am wondering how I would implement such a thing in LISP......
Title: regex library for Autolisp
Post by: Mark on February 24, 2004, 09:06:38 PM
Quote from: CAB
Mark,
You probably saw this already.

No, I missed that one. thanks for the link CAB.