Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
374 B · 16 lines
1234567891011121314151617(defpackage org.lispbuilds.nix/util (:use :cl) (:import-from :ppcre) (:export :replace-regexes))
(in-package org.lispbuilds.nix/util)
(defun replace-regexes (from to str) (assert (= (length from) (length to))) (if (null from) str (replace-regexes (rest from) (rest to) (ppcre:regex-replace-all (first from) str (first to)))))