Bug 117756

Summary: tagging parenthesis are removed from regular expression
Product: [Applications] kregexpeditor Reporter: Leo Savernik <l.savernik>
Component: generalAssignee: Jesper Pedersen <blackie>
Status: RESOLVED WORKSFORME    
Severity: normal CC: info
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Leo Savernik 2005-12-05 22:24:56 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Compiled From Sources

I use tagging parenthesis in a regexp search & replace operation, kregexpeditor will not preserve the tagging parenthesis.

Given the following regexp, entered into the result line of kregexpeditor

\d*(\d{3})

will correctly draw all regexp elements except of the tagging parenthesis. This is not necessarily bad per se.

However, when I accept the regexp to be inserted into the search line of the replace dialog,

[\d]*[\d]{3,3}

is inserted. However, the correct result should be

[\d]*([\d]{3,3})

Otherwise, you cannot match the tags in the replace section.

This is definitely a bug that must be fixed.

I also suggest that tags are represented graphically (though this is more of a wishlist item than a bug report)
Comment 1 T I Z E N 2025-02-17 19:12:06 UTC
If the origin Members still active on this or have an Ticket, MR or PR (as in Invent or on the Kanban), can you insert it to the Bug Report?
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with either Plasma 5.27 (the current LTS version) or Plasma 6.3 (the latest released version).

Regards,

[Tizen](https://invent.kde.org/tizen)
Comment 2 Bug Janitor Service 2025-03-04 03:46:52 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2025-03-19 03:47:16 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.