Uploaded image for project: 'Confluence Source Editor Plugin'
  1. Confluence Source Editor Plugin
  2. SOURCE-75

Support regex replacements in the replace field

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • 1.x-unscheduled
    • 1.0.3
    • true

      REGEX expressions work in the find field, but when a REGEX expression is in the replace field, the captured instance is replaced with the literal expression in the replace field. For example, with the expression [\1] causes "[\1]" is pasted in the code.

            [SOURCE-75] Support regex replacements in the replace field

            +1

            markonator added a comment -

            +1

            it is not a difficult change

            markonator added a comment - +1 it is not a difficult change

            +1 for this feature

            It's sad to have to copy the content to an IDE to make the changes

            Deleted Account (Inactive) added a comment - +1 for this feature It's sad to have to copy the content to an IDE to make the changes

            It's been 5 years since this was requested.  I'm not sure why this hasn't been implemented yet, since it's an integral part of regex.

            Damian Torres added a comment - It's been 5 years since this was requested.  I'm not sure why this hasn't been implemented yet, since it's an integral part of regex.

            Any more news on this feature? We're at 5.8.x and both \1 and $1 paste literal text, not the captured string.

            codemaestro added a comment - Any more news on this feature? We're at 5.8.x and both \1 and $1 paste literal text, not the captured string.

            Aw man. It would have been nice to at least stick a little note next to the regex checkbox that says "doesn't support group replacement" or something so I didn't just waste 10 minutes trying to do the impossible.

            Nick Reilingh added a comment - Aw man. It would have been nice to at least stick a little note next to the regex checkbox that says "doesn't support group replacement" or something so I didn't just waste 10 minutes trying to do the impossible.

            It's frustrating that there are so many things where you still need to edit the (rather unfriendly) source directly. Given that we need to do this, the ability to use regex replacements in the replace field would be a major improvement.

            Felicity Chapman added a comment - It's frustrating that there are so many things where you still need to edit the (rather unfriendly) source directly. Given that we need to do this, the ability to use regex replacements in the replace field would be a major improvement.

              Unassigned Unassigned
              12d24ea8bdfc Bill Bailey
              Archiver:
              mkhairuliana Monique Khairuliana (Inactive)

                Created:
                Updated:
                Archived:
                6 years, 41 weeks, 2 days ago