Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-2876

Regular expression does not work with replace part of "Global search and replace" with regular expression.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 2.0.1
    • Editors
    • None

    Description

      For example,
      if I use global search and replace with regular expression selected and Search for:
      (if|for) (
      And try to replace it with:
      \1(
      I actually get "\1(". It does not replace the \1 with the if or for from the regexp.

      This works as expected when using search and replace locally within a file.
      Then a line containing:
      if (booleanValue) {
      would be replace with
      if(booleanValue)

      Attachments

        Issue Links

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

          Activity

            People

              con Eike Ziller
              martintv Martin Tverdal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes