On Thu, May 16, 2013 at 11:14 PM, Jim Gibson <jimsgib...@gmail.com> wrote:
> The * in (.*) is "greedy", meaning the Perl regular expression engine will > try to match as much as possible in each string after it finds the > substring 'cn='. To make it "non-greedy", put a question mark after the > quantifier: s/^cn=(.*?),/$1/ > > yes, I had forgotten that. Thanks for your kind explanation. -- groet, natxo