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
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to