[konsole] [Bug 462136] regex specs

netizen bugzilla_noreply at kde.org
Fri Nov 25 10:47:45 GMT 2022


https://bugs.kde.org/show_bug.cgi?id=462136

netizen <rgawenda at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |NOT A BUG
             Status|REPORTED                    |RESOLVED

--- Comment #4 from netizen <rgawenda at gmail.com> ---
(In reply to ninjalj from comment #3)
> That's not what non-capturing groups are for. What you need for your
> use-case are look-around assertions
> (http://pcre.org/current/doc/html/pcre2pattern.html#SEC20). E.g. to not
> include a trailing colon:
> 
> foo(?=:)
> 
> To not include a leading colon:
> 
> (?<=:)foo
> 
> or its alias:
> 
> :\Kfoo

You're right, and it works! I'm sorry. I'm closing this

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list