In this question in FAQ, there’s an example of RegExp. It is :.\d{2}
Does it mean that Listary by default (or always?) use non greedy search? In other case this regexp would never match any string as any digits at the end would be consumed by .
If this is true, Listary regexp implementation is different from described in “The 30 Minute Regex Tutorial” which in my opinion should be pointed out in the answer.
Hello daroc,
Thank you for your feedback.
Listary uses a standard Regex implementation (Perl style), it is greedy and is the same as described in “The 30 Minute Regex Tutorial”.
Greedy match means it will return the longest match. For example, given the regex .*\d{2} and a target string ab123cde56, a greedy match will match the whole string ab123cde56, while a non greedy match only matches ab12
Sorry, you’re right. I think I misunderstood something I read on Wikipedia.