[plt-scheme] unexpected regexp behaviour

From: Martin DeMello (martindemello at gmail.com)
Date: Sun Jun 15 22:18:32 EDT 2008

On Sun, Jun 15, 2008 at 7:11 PM, Eli Barzilay <eli at barzilay.org> wrote:
>> So how do I match, say, the first letter of every line in a
>> multiline string?
> In most cases I'd probably split the string up into lines, which
> simplifies most later processing anyway.  If memory is an issue, then
> you can use a (?<=\n) anchor in `regexp-match*', and a separate match
> for the first line.

Gotit. Looks like Scheme will finally beat the urge towards premature
optimisation out of me :)


Posted on the users mailing list.