Sweet! Thanks so much!
On 2014-01-16, at 1:17 PM, John Wiseman wrote:
(clojure.string/replace myText #"(?s)START.*?END" "==")
;; "a==\nee\nff\nggg\n==\n\n"
(?s) specifies multi-line mode, *? is the non-greedy form of *.
On Thu, Jan 16, 2014 at 1:02 PM, Kuba Rot
(clojure.string/replace myText #"(?s)START.*?END" "==")
;; "a==\nee\nff\nggg\n==\n\n"
(?s) specifies multi-line mode, *? is the non-greedy form of *.
On Thu, Jan 16, 2014 at 1:02 PM, Kuba Roth wrote:
> Hi,
> This is more of a regex specific question the clojure,
Hi,
This is more of a regex specific question the clojure, but anyway...
I have the a multiline string as follow:
(def myText "aSTART
END
ee
ff
ggg
START
ii E
END
")
.. and I need to replace all text between START END 'keywords' blocks.