Bug 382679 - Non-greedy regular expressions are not supported
Summary: Non-greedy regular expressions are not supported
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: search (show other bugs)
Version: 16.08
Platform: Debian stable Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-24 19:36 UTC by Victor Porton
Modified: 2020-07-26 19:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Porton 2017-07-24 19:36:46 UTC
Kate seems not to support non-greedy mode (available for example in Perl by appending a question sign to a part of an expression) of regular expressions, as in the following example of a regular expression:

%%(.*?)%%

Please add support for such expressions.

Kate 16.08.3.
Comment 1 Christoph Cullmann 2019-05-19 15:03:22 UTC
Dear user, this wish list item is now closed, as it wasn't touched in the last year and no contributor stepped up to implement it.

The Kate/KTextEditor team is small and we can just try to keep up with fixing bugs.

Therefore wishes that show no activity for a years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.
If you want your feature to be implemented, please step up to provide some patch for it.

If you think it is really needed, you can reopen your request, but keep in mind,
if no new good arguments are made and no people get attracted to help out to implement it,
it will expire in a year again.

We have a nice website https://kate-editor.org that provides all the information needed to contribute, please make use of it.

Patches can be handed in via https://phabricator.kde.org/differential/

Greetings
Christoph Cullmann
Comment 2 Rafael Linux User 2020-01-28 12:06:58 UTC
(In reply to Victor Porton from comment #0)
> Kate seems not to support non-greedy mode (available for example in Perl by
> appending a question sign to a part of an expression) of regular
> expressions, as in the following example of a regular expression:
> 
> %%(.*?)%%
> 
> Please add support for such expressions.
> 
> Kate 16.08.3.

I had the same necessity, and I think is not a "feature request". Non-greedy question mark is an standard in any regular expression processor nowadays.
Comment 3 Mihai Sorin Dobrescu 2020-07-26 19:04:41 UTC
I agree, I've spent a lot until I've found it does not work as it should. Please correct this.