[racket] Regexp question: Pattern that can match everything to left of first pattern?
Regexp question: Is there a pattern that can match everything to left of
first pattern?
(regexp-match #rx"x.*" "12x4x6") ; => '("x4x6") ;returns everything to
right of first pattern x
(regexp-match #rx"___" "12x4x6") ; => '("12x") ;returns everything to left
of first pattern x
Thanks.
Don Green
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130508/62ad2d74/attachment-0001.html>