OK, here it is:
http://docs.oracle.com/javase/7/docs/api/index.html?java/util/regex/Pattern.html

Look under "Special Constructs", the 3rd entry.  Still pretty terse!
Alan



On Wed, May 29, 2013 at 9:45 AM, Neale Swinnerton <ne...@isismanor.com>wrote:

> You need to pass the multiline 'm' flag to the regex. some variant of:
>
> (def testcase "Line 1\nLine 2\nTarget Line\nLine 4\nNot a target line")
> (println testcase)
> (re-seq #"(?im)^target" testcase)
> (re-seq #"(?im)target" testcase)
> #'user/testcase
> Line 1
> Line 2
> Target Line
> Line 4
> Not a target line
> nil
> ("Target")
> ("Target" "target")
>
>
>
> *Neale Swinnerton*
> {t: @sw1nn <https://twitter.com/#!/sw1nn>, w: sw1nn.com }
>
>
> On Wed, May 29, 2013 at 5:43 PM, Peter Mancini <pe...@cicayda.com> wrote:
>
>> There has to be some way to turn on line recognition. Its a basic
>> function of regex. I know the string has lines, I can even use
>> clojure.string/split-lines on it. I shouldn't have to do that and map
>> against it. It should be built into the regular expression system. I'm
>> certain my problem is ignorance and not some oversight in the design of the
>> system.
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to