racket - Using Regexp-match* to pull data in between two tags -


i need able pull data in between different points

 "test test <p>important information</p> test test test <p>more important information</p>" 

the result should '("important" "information" "more" "important" "information")

(define text "test test <p>important information</p> test test test <p>more important information</p>") (append-map string-split               (regexp-match* #px"<p>([a-z ]+)</p>" text #:match-select cadr)) 

result is: '("important" "information" "more" "important" "information")


Comments