Comment 3 for bug 791649

Revision history for this message
Oleg L (loleg) wrote :

Same problem here with this replacement:

123 abc
456 def

find: ^([0-9]+) (.*)$
replace: [\1, "\2"],

[123, "abc"],
[123, "abc"],

replace: [\g<1>, "\g<2>"], (as recommended in @mystilleef's link)

[123, "abc"],
[123, "abc"],

$ scribes -i
========================================================
System Info: ('Linux', 'maennerzugu', '3.11.0-19-generic', '#33-Ubuntu SMP Tue Mar 11 18:48:34 UTC 2014', 'x86_64')
Python Version: 2.7.5+ (default, Feb 27 2014, 19:37:08)
[GCC 4.8.1]
System Byteorder: little
Python Modules: ('__builtin__', '__main__', '_ast', '_bisect', '_codecs', '_collections', '_functools', '_heapq', '_io', '_locale', '_md5', '_random', '_sha', '_sha256', '_sha512', '_socket', '_sre', '_struct', '_symtable', '_warnings', '_weakref', 'array', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'errno', 'exceptions', 'fcntl', 'gc', 'grp', 'imp', 'itertools', 'marshal', 'math', 'operator', 'posix', 'pwd', 'select', 'signal', 'spwd', 'strop', 'sys', 'syslog', 'thread', 'time', 'unicodedata', 'xxsubtype', 'zipimport', 'zlib')
========================================================
Scribes Version: 0.4-dev-build910
Dbus Version: (1, 2, 0)
GTK+ Version: (2, 24, 20)
PyGTK Version: (2, 24, 0)
Psyco Not Installed
========================================================
Running Instance: 1
========================================================
Python Path: /usr/lib/python2.7/dist-packages
Plugin Path: /usr/lib/scribes/GenericPlugins
Data Path: /usr/share/scribes
Executable Path: /usr/bin
========================================================