That's not a Clojure question, but if you ask it on StackOverflow you'll get an answer in like 2 seconds. :) From your description it sounds like you want /^[ML]{3}[0-9]{2}$/ but the description of your problem could be interpreted in a few other ways, so that might not be what you want.
On Fri, Jul 30, 2010 at 5:02 PM, Base <basselh...@gmail.com> wrote: > Hi All - > > I am sure that this is an easy one, but I am stuck. > > I have a document that should have triplets of a letter (M or L) > flllowed by 2 numbers. But the file has a ton of errors and often I > find a number that would be > > M123.5554 > or 1234.435M > > i.e. - the letter gets appended to the end of the number. > > This seems like a great place to use regex....how would one craft a > pattern for this? > > Thanks > > Base > > -- > 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<clojure%2bunsubscr...@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 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