
October 24th, 2011, 04:53 AM
|
|
Registered User
|
|
Join Date: Oct 2011
Posts: 3
Time spent in forums: 52 m 17 sec
Reputation Power: 0
|
|
|
There is actually a grep search function in InDesign.
Yes, your regex need many applies. But your regex gave me some clues with the backreference function \1 \2 etc - that was actually the function I was looking for =)
Based on your script I solved it in this way. Searching with InDesign's GREP "search and replace" I can now change my table of content with just one click =) yey! Tnx!
FIND: ^(.+)\t(\d+)\r^(.+)\t\2
CHANGE TO: $3/$1\t$2
Note: In InDesign's "change to" field, the $1 $2 etc is used for backreferences.
|