[kde-doc-english] kate and non-greedy regular expressions

WK wanradt at gmail.com
Thu Aug 20 22:17:37 CEST 2009


Terr!

I quote Kate documentation:
"Greed
When using quantifiers with no maximum, regular expressions defaults
to match as much of the searched string as possible, commonly known as
greedy behavior.
Modern regular expression software provides the means of “turning off
greediness”, though in a graphical environment it is up to the
interface to provide you with access to this feature. For example a
search dialog providing a regular expression search could have a check
box labeled “Minimal matching” as well as it ought to indicate if
greediness is the default behavior."


What you mean with 'a regular expression search could have a check box
labeled “Minimal matching”', when Kate does not have such a feature?
Is this some kind of selfcritic statement or should i look deeper to
find such checkbox? I can't find possibility to search non-greedy RE,
for example i want to get rid of every HTML-tag in some HTML document
without losing any content. Is this possible in Kate?

-- 
TIA,
Tänud ette

Gunnar



More information about the kde-doc-english mailing list