[scribblings] bad group example
This commit is contained in:
parent
e91b79481e
commit
8a797f016d
|
@ -106,7 +106,7 @@
|
|||
(define-for-syntax (group-error str reason)
|
||||
(raise-argument-error
|
||||
errloc-key
|
||||
(format "Valid regexp pattern (contains unmatched ~a)" reason)
|
||||
(format "Valid regexp pattern (unmatched ~a)" reason)
|
||||
str))
|
||||
|
||||
;; Dispatch for counting groups
|
||||
|
|
|
@ -70,6 +70,7 @@ In other words, the result is one string for the matched substring and an unknow
|
|||
(U #f (List String String)))
|
||||
(ann (regexp-match: #"(la(m*)bda)" #"lam")
|
||||
(U #f (List Bytes Bytes Bytes)))
|
||||
(regexp-match: "(bad))group" "")
|
||||
]
|
||||
|
||||
@emph{Note:} the regular expression @racket{|} operator is not currently supported because it can nullify some groups.
|
||||
|
|
Loading…
Reference in New Issue
Block a user