Regular expression – Which regular expressions I should use in Common Lisp?

I am trying to learn Common Lisp and want to use regular expressions to parse text files. Which library is the easiest to use for a beginner like me? Am I correct to assume that it depends on the Common Lisp implementation I use? I saw some promising Google results, but I don’t think it would hurt to see if I can get some good advice from Lispers. Thanks!
For beginners, you only need to use CL-PPCRE. It is fast, powerful and stable, and in any implementation All work normally.

There is a little trick to make it more enjoyable-in addition to PPCRE, the nickname of RE is added.

(rename-package "CL-PPCRE" "CL-PPCRE"'("PPCRE" "RE"))

So you will be able to use it this way: (re:scan …

I am trying to learn Common Lisp and want to use regular expressions to parse text files. Which library is the easiest to use for a beginner like me? Am I correct in assuming It depends on the implementation of Common Lisp I use? I have seen some promising Google results, but I don’t think it will hurt to see if I can get some good advice from Lispers. Thanks!

For beginners, you only need to use CL-PPCRE. It is fast, powerful and stable, and it works well in any implementation.

There is a little trick to make it more enjoyable-in addition to PPCRE, the nickname of RE is added.

(rename-package "CL-PPCRE" "CL-PPCRE" '("PPCRE" "RE"))

So you will be able to use it this way: (re:scan …

Leave a Comment

Your email address will not be published.