 (find-match-near-pos simple-number-regex "I have 1 cookie 30" 17)
 
 ;; We then parse a line of text using a
-;; TODO: is this extraneous?
+;; TODO: is this extraneous? maybe it'll be needed for multiple regex types
 (defn parse-for-scrub [line-text target-pos]
   (let [match (find-match-near-pos simple-number-regex line-text target-pos)]
     (flatten match)))
-
-(defn adder [x y]
-  (+ x y))
-
-(defn circle-radius [r]
-  (* 3.1492653 (* r r)))
-
-(adder 144 244)
-
-(circle-radius 219.6)
-
-;; This holds the global state for this plugin
-(def app-state (atom {:last-range 0}))
 
 ;; This returns the number of places to the right of a decimal point
 ;; in a string representation of an integer or floating point number

        res))))

(comment (
  (. (js/RegExp. (.-source #"-?\d*\.?\d+") (str "g")) exec "1 2 3")
  (. (js/RegExp. (.-source #"h") (str "g")) exec "this is h h")))


  (filter (fn [x]
            (let [[match-pos match-str] x
                  end-pos (+ match-pos (count match-str))]
              (and (<= match-pos target-pos)
                       (>= end-pos target-pos))))
          (re-pos regex string)))
