summaryrefslogtreecommitdiff
path: root/bs/re.scm
blob: 6ecc0748751a1964054a27bf94b67f87352cd786 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!r6rs
(library (bs re (0))
  (export match group)
  (import (rnrs base (6))
          (ice-9 regex))
  (define (match s pat)
    (string-match pat s))
  (define (group m n)
    (if m
        (match:substring m n)
        #f)))