This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-17
Channels
- # announcements (11)
- # beginners (29)
- # calva (2)
- # clara (12)
- # cljsjs (1)
- # cljsrn (7)
- # clojure (39)
- # clojure-europe (6)
- # clojure-nl (7)
- # clojure-spec (6)
- # clojure-sweden (1)
- # clojure-uk (15)
- # clojuredesign-podcast (6)
- # code-reviews (2)
- # conjure (29)
- # cursive (3)
- # datomic (13)
- # duct (15)
- # emacs (1)
- # figwheel-main (2)
- # fulcro (7)
- # graalvm (16)
- # lambdaisland (4)
- # luminus (1)
- # meander (15)
- # observability (15)
- # off-topic (27)
- # parinfer (7)
- # pathom (2)
- # reitit (2)
- # rum (11)
- # shadow-cljs (57)
- # spacemacs (6)
- # sql (56)
- # tools-deps (36)
- # xtdb (3)
Given lines of
:ak1 {:abbr "ak" :name "Alaska"}
:az {:abbr "az" :name "Arizona"}
:ar {:abbr "ar" :name "Arkansas"}
:ca {:abbr "ca" :name "California"}
:co1 {:abbr "co" :name "Colorado"}
and wanting to replace the :[a-z]\{2,3\}\b
with the respective line in the lines of
#uuid "8ce5e449-6699-4a57-b5ff-dcb1f3ac543d"
#uuid "2058ed97-8cf2-4376-9979-33e13d3ce698"
#uuid "20975100-6575-4cfe-b269-626ae379a78f"
#uuid "59ad797e-e00a-4c39-9554-63c32126e4c0"
#uuid "9243cc18-3395-416b-a0ea-d584f6f60e57"
how would you do it? Can't block select/replace since the columns needing replacement don't align. In this case, I could regex-replace the first column of the first line and make them match. But this is a contrived example driven by curiosity, not practicality, so just assume there is no block functionality.