Re: Replacing subsequences
From: Jeff (massung_at_gmail.com)
Date: 12/11/04
- Next message: Thomas Gagne: "Learning CLISP"
- Previous message: ramza2: "Re: Simple Applications for learning FTP"
- In reply to: Chris Capel: "Replacing subsequences"
- Next in thread: Chris Capel: "Re: Replacing subsequences"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 11 Dec 2004 02:54:18 GMT
Chris Capel wrote:
> I had a need just now to replace one substring in my string with a
> different substring, of a different length
If you want something that's quick to just "drop in and use", might I
suggest using my regular expression package (url below). It allows very
quick and simple replacing of text in a string:
(re:replace-all "Some random string"
#/\s(\a+)$/
(format nil "~D" (length $1)))
==> "Some random 6"
-- http://www.retrobyte.org mailto:massung@gmail.com
- Next message: Thomas Gagne: "Learning CLISP"
- Previous message: ramza2: "Re: Simple Applications for learning FTP"
- In reply to: Chris Capel: "Replacing subsequences"
- Next in thread: Chris Capel: "Re: Replacing subsequences"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|