[racket] Regexp-match question: ? means what, or .*? means what...

From: Don Green (infodeveloperdon at gmail.com)
Date: Wed May 8 21:51:44 EDT 2013

Regexp-match question: ? means what, or .*? means what...

;This I understand:
;To return pattern and everything to left of first instance of pattern,
use: [^<pattern>]*<pattern> ;where ^ means 'not'; example:
(car (regexp-match* #rx"[^/]*/" "12/4/6")) ; => "12/"

;This I do not understand:
;To return pattern and everything left of first instance of pattern, use:
.*?<pattern> inside #rx""; where ? means _______; or where .*? means
______________; example:
(car (regexp-match* #rx".*?/" "12/4/6")) ; => "12/"

Can you replace my ________ with some words?
Any comments are very much appreciated.
Thanks.
Don Green
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130508/7a8c2eeb/attachment.html>

Posted on the users mailing list.