RegEx issue with Round Brackets for Grouping
Bug #791649 reported by
Diego Algara
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scribes |
New
|
Undecided
|
Unassigned |
Bug Description
When I try to use RegEx to replace parts of data, like:
abc_xyz
rts_mno
Using:
Find: _(.*)
Replace: _\1_123
I expect:
abc_xyz_123
rts_mno_123
But instead I get:
abc_xyz_123
rts_xyz_123
Scribes keeps \1 as the first group of the whole file, instead of each the line.
Trying a different Replace rule: _\2_123
I get:
abc_\_123
rts_\_123
This is a very useful tool, please fix it.
To post a comment you must log in.
What's the detail of scribes -i
Also read this to see if it fixes your problem.
https:/ /answers. launchpad. net/scribes/ +question/ 140128https: //answers. launchpad. net/scribes/ +question/ 140128