diff --git a/lib/chibi/regexp.scm b/lib/chibi/regexp.scm index 40ef0070..fc2a16b2 100644 --- a/lib/chibi/regexp.scm +++ b/lib/chibi/regexp.scm @@ -532,6 +532,9 @@ (string-cursor>? i start) (char-word-constituent? (string-cursor-ref str (string-cursor-prev str i))))) +(define (match/nwb str i ch start end matches) + (and (not (match/bow str i ch start end matches)) + (not (match/eow str i ch start end matches)))) (define (match/bog str i ch start end matches) (and (string-cursor