On Fri, Aug 22, 2014 at 6:30 PM, Thorsten Jolitz <[email protected]> wrote: > > But - why is this not working as expected? > > #+BEGIN_SRC emacs-lisp > (string-match "\\(.\\|\n\\)+?\\(world\\)" "hello \nworld") > (match-string 1 "hello \nworld") > #+END_SRC > > #+results: > : > > or it is one, than it should have match data
It does have have match data, "\n". It's only one character long because "\\(.|\n\\)" only matches a single character. You need to include the "+?" in the group if you want more. -- You received this message because you are subscribed to the Google Groups "magit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
