regex-node
function
rewrite-clj.node/regex-node
(regex-node [pattern-string])Create node representing a regex with `pattern-string`.
Use same escape rules for `pattern-string` as you would for `(re-pattern "pattern-string")`
```Clojure
(require '[rewrite-clj.node :as n])
(-> (n/regex-node "my\\.lil.*regex")
n/string)
;; => "#\"my\\.lil.*regex\""
```
Examples
No examples yet. Be the first to add one!