Ticket #1325 (new defect)
Opened 21 months ago
Backreference substitution not working in Replace dialog
| Reported by: | FrDarryl | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Search and Replace | Version: | 0.90 |
| Keywords: | Cc: |
Description
Trying to reformat some Euro date strings (dd.mm.yyyy) to sortable (yyyymmdd).
I start with buffer containing:
foo 10.20.2011 bar
foo 05.30.2010 bar
Do a Search->Replace
'''Find Text:('''\d{2})\.(\d{2})\.(\d{4})[^\d]
''tick'' '''Regular Expression
'''
'''Replace Text:'''\3\2\1
After replacing (regexp matched twice but backreference syntax ignored):
foo \3\2\1bar
foo \3\2\1bar
It appears Scintilla is meant to support backreferences, e.g.,
http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Regular_Expressions#Example_2
Cheers!
Note: See
TracTickets for help on using
tickets.
