yeah, I actually had to modify your script a little bit, the second search "(\S+)\[(\d+)\]" only matched part of the intended main text notes numbers, I had to add an extra space before [ in the text file first, then use "^\s\[(\d+)\](\S+)" and "(\S+)\s\[(\d+)\]" to match all that I wanted to match, I guess some Chinese characters immediately before the "[" sign in the main text had screwed up the search. But it's not a big issue for me to do several passes of global S&R. Again, appreciate your help a lot.
|