octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #65518] Problems with right-click menu on Comm


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #65518] Problems with right-click menu on Command Window
Date: Wed, 27 Mar 2024 03:23:21 -0400 (EDT)

Follow-up Comment #12, bug #65518 (group octave):

Word boundary (i.e., "\\b") makes a bit more sense than a backspace character
(i.e., "\b").
However, I don't understand why we'd need to match a word boundary. Wouldn't
the following (simpler) regular expression match the same?

        QRegularExpression expr {"(\\w+)"};


If we'd like to make sure that the matched function name starts with a letter
or underscore (not a digit), we could maybe use the following expression:

        QRegularExpression expr {"\\b([A-Za-z_]\\w*)\\b"};


In that case, matching word boundaries *would* make sense (to make sure it
wouldn't match "test" in "4test").




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65518>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]