[plt-scheme] unexpected regexp behaviour

From: Martin DeMello (martindemello at gmail.com)
Date: Sun Jun 15 19:40:27 EDT 2008

> (define a "hello\nworld\n")
> (regexp-match* (regexp "(?m:^..)") a)
("he" "ll" "wo" "rl")

expected ("he" "wo")

word boundaries are behaving oddly too:

> (regexp-match* (pregexp "(?m:\\b..)") a)
("he" "ll" "wo" "rl")


martin


Posted on the users mailing list.