Page 1 of 1

verse direction change

Posted: 2008-04-03 00:28:53
by rico2008
In Classic Nisus I would like to be able to reverse numbers so that
12:34 will become 34:12;
and 2:9 becomes 9:2
and 6:12 becomes 12:6
and 20:3 becomes 3:20

is there an equation I can use to reverse these? right now
(0-9)1+:(0-9)1+ finds them but what about replace?

Posted: 2008-04-03 03:21:19
by Groucho
Find: ([0-9]+):([0-9]+)
Replace: \2:\1

This should work.


verse direction change

Posted: 2008-04-03 05:13:36
by rico2008
That replace didn't work because it turns each find into \2:\1 instead of to the desired reverse arrangement.
maybe this is on the way to something though

also (0-9)1+: (0-9)1+ is better for isolating the verse couplets.

any more??

Posted: 2008-04-04 01:10:10
by Groucho
Looks like you are using PowerFind.
Try switching to PowerFind Pro, instead, then digit:

Find: \([0-9]+\):\([0-9]+\)
Replace: \2:\1

If this doesn't work, try this Find expression:


I haven't used NWC for quite a long time now, and am not sure whether colon needs be escaped or not.

Cheers, Henry.

Re: verse direction change

Posted: 2013-04-01 18:25:14
by davidchristmass
There is a complete fast, exact method, save the page as a graphic, mirror the page horrizontal, complete, and then flip the numbers that appear backward, individually the right way around.