Discussion:
cl-ppcre tutorial/examples
(too old to reply)
John Thingstad
2005-02-04 18:55:11 UTC
Permalink
Does anyone know of a cl-ppcre tutorial?
Do you have any example code?
I've just started to play with it and thought I might save myself some time
and frustration.
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Edi Weitz
2005-02-04 20:56:05 UTC
Permalink
Does anyone know of a cl-ppcre tutorial? Do you have any example
code? I've just started to play with it and thought I might save
myself some time and frustration.
The syntax of Perl regular expression is described in one of the Perl
manpages, specifically

perldoc perlre

I think that's quite good to begin with. Of course, there are tons of
online sources explaining regular expressions. And there's Jeffrey
Friedl's book - see the O'Reilly website.

To play around with regular expressions:

<http://weitz.de/regex-coach/>

Plus, I think the docs for CL-PPCRE are quiet reasonable once you know
what a regular expression is. The include example code for each
function. What are you missing?

Cheers,
Edi.
--
Lisp is not dead, it just smells funny.

Real email: (replace (subseq "***@agharta.de" 5) "edi")
Edi Weitz
2005-02-04 21:00:40 UTC
Permalink
Post by Edi Weitz
Plus, I think the docs for CL-PPCRE are quiet reasonable
^----

quite, actually... :)
--
Lisp is not dead, it just smells funny.

Real email: (replace (subseq "***@agharta.de" 5) "edi")
John Thingstad
2005-02-04 21:45:29 UTC
Permalink
On Fri, 04 Feb 2005 19:55:11 +0100, "John Thingstad"
Does anyone know of a cl-ppcre tutorial? Do you have any example
code? I've just started to play with it and thought I might save
myself some time and frustration.
The syntax of Perl regular expression is described in one of the Perl
manpages, specifically
perldoc perlre
I think that's quite good to begin with. Of course, there are tons of
online sources explaining regular expressions. And there's Jeffrey
Friedl's book - see the O'Reilly website.
<http://weitz.de/regex-coach/>
Plus, I think the docs for CL-PPCRE are quiet reasonable once you know
what a regular expression is. The include example code for each
function. What are you missing?
Cheers,
Edi.
Yes, I am familiar with regexp syntax.
I probally don't have all the hacks down though.
Already got Regexp Coach. Great utillity by the way!
What I was looking for were how the functions were used in
together. The current documenation is a great reference but not
a great user guide which should be more task oriented.
Still I guess I have more or less figured out how to use
it by now.
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Edi Weitz
2005-02-04 22:00:37 UTC
Permalink
Post by John Thingstad
What I was looking for were how the functions were used in
together. The current documenation is a great reference but not a
great user guide which should be more task oriented. Still I guess
I have more or less figured out how to use it by now.
Some (simple) usage examples might be found in open source code like
TBNL, LoGS, or Portable AllegroServe. You can also ask specific
questions on the cl-ppcre-devel mailing list if you're stuck.

Cheers,
Edi.
--
Lisp is not dead, it just smells funny.

Real email: (replace (subseq "***@agharta.de" 5) "edi")
Loading...