The result is a little bit strange still, since I am getting
dupliates.  First, it returns the string I want

49|00|12 .... 12|a9|a4|ff

but then it also returns the same string without the first and last 4
characters, e.g.

12|....12|a9|

Also, how come I don't need to escape the | inside the parenthesis?

thanks Meikel!!


On Mar 30, 10:59 am, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> you have to escape the |.
>
> user=> (re-seq #"49\|00\|([0-9a-f|]+)\|a4\|ff" "a5|a5|49|23|49|00|12|
> fc|5e|a4|ff|a7|49|00|ee|d3|a4|ff|ae")
> (["49|00|12|fc|5e|a4|ff|a7|49|00|ee|d3|a4|ff" "12|fc|5e|a4|ff|a7|49|00|
> ee|d3"])
>
> However this will be greedy...
>
> Sincerely
> Meikel

-- 
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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to