Uploaded image for project: 'Qt Creator'
  1. Qt Creator

Simplify usage of regular expressions in find and replace



    • Type: Suggestion
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.2.1
    • Fix Version/s: None
    • Component/s: Documentation, Editors
    • Labels:
    • Environment:

      Windows 7x64


      Regular expressions are a powerful tool when finding or replacing code. However, the power and flexibility come at a price: Even simple expressions can be non-obvious to casual users. In addition, the documentation is so overwhelming that it's hard to find these simple expressions quickly.

      Suggestion: Make it easier to use such simple expressions such as
      -) match any character
      -) match any number
      -) match any string of characters
      -) match any string of whitespaces
      -) match a line break

      Possible way to achieve this:
      1) Add a little drop-down box in the find/replace dialog from which you can select and insert a few ready-to-use regular expressions and characters that need to be escaped
      (see the Visual Studio 2015 Expression Builder for an example, although I would cut down to around 10 expressions for that)
      2) Provide a shortlist of popular regular expression in the documentation
      3) Provide a simplified regular expression option that only allows a few expressions, and that is modeled on well-known existing system (? to match single character, * to match any string, \n to match line break,...)
      (see Notepad++ for an example)


        No reviews matched the request. Check your Options in the drop-down menu of this sections header.



            • Assignee:
              con Eike Ziller
              asperamanca Robert Schimkowitsch
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created:

                Gerrit Reviews

                There are no open Gerrit changes