I have various strings, some like \"45\", some like \"45px\". How how I convert both of these to the number 45?
AFAIK there's no standard solution for your problem. I think something like the following, which uses clojure.contrib.str-utils2/replace, should help:
(defn str2int [txt] (Integer/parseInt (replace txt #"[a-zA-Z]" "")))