With regex enabled, replacing a start of line match with an empty replace string produces
odd results. It appears to try and rematch the same line after performing the replace.
Examples (all with an empty replace string and text AABBA):
Search: ^.
Expected: ABBAA
Result: \[blank line\]
Search: ^A
Expected: ABBAA
Result: BBAA
Search: ^AA\[^A\]\*
Expected: AA
Result: \[blank line\]
Interestingly, EOL matches behave as expected. E.g. the search string .$ will only
remove the last character of the line.
Submitted | *anonymous - 2011-04-01 01:11:16 | Assigned | |
---|---|---|---|
Priority | 5 | Labels | search and replace |
Status | open | Group | normal bug |
Resolution | None |
2012-07-11 14:41:34 daleanson |
- **status**: open --> closed-invalid |
---|---|
2012-07-11 14:41:34 daleanson |
Test case 1 steps:
|
2012-07-12 00:19:35 swetha1910 |
In your test case 1, when 'Replace All' is clicked, the buffer is emptied. But generally
when it is clicked , only the first letter should be replaced and when clicked again
the next letter should be replaced. But here the entire buffer is emptied, it simply
means that the replace all method is called repeatedly. |
2012-07-19 16:17:47 k_satoda |
Reopened, as the expected behavior is clarified on a discussion on
|
2012-07-19 16:17:47 k_satoda |
- **status**: closed-invalid --> open |