Re: non-greedy regexp don't seem to work

2015-05-25 Thread Simon Albrecht
Yours, Simon Am 22.05.2015 um 11:42 schrieb Michael Gerdau: In answering my own post: Hi list, the following two statements should provide the exakt same strings: (match:substring (string-match "_(.*?)_" "a_ä_ö_de_fü_") 1) (match:substring (

Re: non-greedy regexp don't seem to work

2015-05-22 Thread Michael Gerdau
In answering my own post: > Hi list, > > the following two statements should provide the exakt same strings: > (match:substring (string-match "_(.*?)_" "a_ä_ö_de_fü_") 1) > (match:substring (string-match "_([^_]*)_" "a_ä_ö_de_fü_") 1) > > However for me they don't. Here is a log how I tested it:

non-greedy regexp don't seem to work

2015-05-21 Thread Michael Gerdau
Hi list, the following two statements should provide the exakt same strings: (match:substring (string-match "_(.*?)_" "a_ä_ö_de_fü_") 1) (match:substring (string-match "_([^_]*)_" "a_ä_ö_de_fü_") 1) However for me they don't. Here is a log how I tested it: $ guile GNU Guile 2.0.11