Ticket #317 (closed defect: wontfix)

Opened 15 years ago

Last modified 14 years ago

regular expression replace does not work correctly in mcedit

Reported by: bilbo Owned by:
Priority: major Milestone: 4.7
Component: mcedit Version: 4.6.2
Keywords: Cc:
Blocked By: Blocking:
Branch state: Votes for changeset:

Description

In current git version I entered search:

([0-9]+)(th|nd|st) ([a-z]+) ([0-9]+)

and replacement:

\4-\3-\1

in mcedit and ticked "regular expression" (case sensitivity is off)

This correctly finds "16th Oct 2104", but instead of replacing it with "2104-Oct-16" it replaces it with literal "\4-\3-\1"

I tried using "$4-$3-$1", with same result (text replaced by "$4-$3-$1")

Change History

comment:1 Changed 15 years ago by slavazanko

  • Status changed from new to closed
  • Resolution set to wontfix

mc don't work with regexp-style replace. Only scanf-style replace.

In branch m-utf-8 search engine will fully rework. This problem will fix after merge m-utf-8 branch into master.

And, may be, scanf-style search and replace will removed (because regex-style will fully replace it).

Note: See TracTickets for help on using tickets.