[racket] Regexp question: Pattern that can match everything to left of first pattern?

From: Don Green (infodeveloperdon at gmail.com)
Date: Wed May 8 13:25:42 EDT 2013

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>

Posted on the users mailing list.