This seems like an easy to solve problem but I can't see a similar topic.
I need to change the sequence of codes without changing the variables in the codes. Can this be done? And if so how?
Sample of current text:
ind1=' ' ind2=' ' tag='300'>
should be replaced by:
tag='300' ind1=' ' ind2=' '>
The variables in between the '' for each part must be preserved.
Any help is very much appreciated.
changing the sequence of codes while preserving values
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
You haven't defined the problem precisely. Are the keys always initially in the same order, that is ind1, ind2, then tag?
If so, this should do it:
Use "Posix" regular expression syntax:
If so, this should do it:
Use "Posix" regular expression syntax:
Search | Replace... (<F8>):Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
Find what: (ind1='[^']*') (ind2='[^']*') (tag='[^']*')
Replace with: \3 \1 \2
[X] Regular expression
Replace All
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm