On 2015-10-11 12:31, Daniel Naber wrote: >> Use of "exact-meaning" would be very rare. >> Maybe a better name: <regexp collapse_spaces="no"> > > I think that's okay with me, but I need to think more about it. Maybe > the easiest implementation would be to just replace " " by "\s+" before > the regex is applied (but not in "[...]")?
I've just committed a change so that <regexp> are now 'smart' by default, i.e. you can use a space in the regex and it will internally be converted to "\s+" (actually even to "(?:\s+)"). I also wanted the smart type to add \b around the regex, but it's not that easy. For example, if you have <regexp>Dr\.<regexp>, you'd get the expression "\bDr\.\b", which will not match when e.g. a space follows, as the dot is not a boundary character. I'll search for a better solution. Regards Daniel ------------------------------------------------------------------------------ _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel