I am trying to construct a regexp for URLs (for grabbing them out quickly out of a paragraph, region, etc.). I don't need it advanced, but I am having some troubles with it. Here is my attempt, which doesn't work too well:
(re-search-forward (rx (minimal-match (and "http" (*? anything) (or ")" "\"" "[:blank:]")))))
This other question has some url regexps, but those aren't for emacs.
P.S. I also don't understand how
match-beginning works as its description is a little bit mystic.