hi,
i have different lines like
here and there some text 4598
45 eref ereo and more more
i want to replace the last space with |
so the output should be
here and there some text|4598
45 eref ereo and more|more
(and later maybe the second last space)
how to work backwards?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
To replace the last space with |:
To replace the second last space with |:Find what: (.*)-([^-]+)$ [Replace the hyphens with spaces]
Replace with: \1|\2
[X] Regular expression
These assume you are using Posix regular expression syntax:Find what: (.*)-([^-]+-[^-]+)$ [Replace the hyphens with spaces]
Replace with: \1|\2
[X] Regular expression
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax