When I run a search/replace with a RegExp search phrase, and I want to
specify a group to change, the replace works when I use the command
replace-then-find (ALT+-), but it fails when I run replace-all.
Test case: Add a space following a regex group -
1. Enter the following into a node body:
2000.01word1
1847.00word2
2. Set up the FIND panel for node-only, body-only, RegeXp.
3. Enter the search phrase: (\.\d\d)
4. Enter the replacement phrase: \1
(that is "\1" followed by a space).
5. Press <ALT><-> (ALT MINUS) twice.
Expected result:
2000.01 word1
1847.00 word2
Observe that we got the expected result.
6. Restore original text, say with <CNTRL-z>.
7. Run the replace-all command (<ALT-X>replace-all<ENTER><TAB><TAB>).
Expected result: Same as above.
Leo result:
2000\1 word1
1847\1 word2
It looks like Leo doesn't honor the regex-ness of the replacement phrase,
but only for replace-all.
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/251a5ce6-1b4f-4ab4-bd2c-bed5af4b4219n%40googlegroups.com.