I'm trying to match a pattern at a certain position k (k=3 in the example below) in a string.
I've tried
(re-seq #"^alex" (str (drop 3 "xxxalexandre")))
but it does not match anything (=> nil)
What is the Clojure-way to do this ? (I'm on Clojure 1.4.0)
A good alternative would be to match the pattern anywhere, but then I would need the position where it found the pattern in the input. Can I do this without accessing the java.util.regex.Matcher instance ? (which I've been told is very bad, since it's mutable)