I apologise if this was mentioned somewhere, but I couldn't find it in the manual.
Which regexp engine does TXS use for normal search/replace in the editor?
In particular I'm looking to use a non-greedy modifier (e.g. Perl's .*?) as well as singleline modifier to allow . to match newlines as well (e.g. Perl's s).
I noticed that .*? doesn't work so it must be using a non-Perl compatible regexp engine.
Cheers
p.s. If this info is not in the manual, then you may want to add it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I apologise if this was mentioned somewhere, but I couldn't find it in the manual.
Which regexp engine does TXS use for normal search/replace in the editor?
In particular I'm looking to use a non-greedy modifier (e.g. Perl's
.*?
) as well as singleline modifier to allow.
to match newlines as well (e.g. Perl'ss
).I noticed that
.*?
doesn't work so it must be using a non-Perl compatible regexp engine.Cheers
p.s. If this info is not in the manual, then you may want to add it.
It uses QRegExp
But you cannot use (global) modifiers
Last edit: Benito van der Zander 2015-03-03