Closed brainlessbitch closed 3 months ago
The syntax may look like that in other languages, but Chibi uses SRFI 115 SREs:
(regexp-replace-all
'(: "#{1}" (* space) ($ (~ space) (+ nonl)))
"#{1} Hello world"
'("<h1>" 1 "</h1>"))
=> "<h1>Hello world</h1>"
OHHHH thank you so much, i never woulda figured that out lol
this is my code
but all i get out is like
<h1>\1</h1> Hello, world!
, am i doing something wrong or is it a problem with chibi? (if you're wondering, i'm making a markdown to html parser)