non-greedy reg-ex broken?
Posted: Thu Mar 21, 2013 12:12 am
Linux 14.1 Editor
using "<emph ana="italic">(.*?)</emph>," as my search string
on
"<emph ana="italic">is</emph> my sister? so I might have taken her to me to wife: now therefore behold thy wife, take <emph ana="italic">her</emph>,"
I would expect it to return "<emph ana="italic">her</emph>," as the result.
However it returns the entire string? That seems wrong?
Scott
using "<emph ana="italic">(.*?)</emph>," as my search string
on
"<emph ana="italic">is</emph> my sister? so I might have taken her to me to wife: now therefore behold thy wife, take <emph ana="italic">her</emph>,"
I would expect it to return "<emph ana="italic">her</emph>," as the result.
However it returns the entire string? That seems wrong?
Scott