[plt-scheme] unexpected regexp behaviour

From: Martin DeMello (martindemello at gmail.com)
Date: Sun Jun 15 21:54:42 EDT 2008

On Sun, Jun 15, 2008 at 6:46 PM, Eli Barzilay <eli at barzilay.org> wrote:
> This consistent with (and a result of) the way `regexp-match' works
> when you begin in the middle of the string:
>  > (regexp-match #rx"(?m:^..)" "hello" 2)
>  ("ll")
>  > (regexp-match #px"\\b.." "hello" 2)
>  ("ll")

So how do I match, say, the first letter of every line in a multiline string?


Posted on the users mailing list.