View Single Post
Old 02-25-2011, 02:23 PM   #18
Sylver
Addict
Sylver began at the beginning.
 
Posts: 234
Karma: 40
Join Date: Apr 2010
Device: The Nook, iPad
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.
Sylver is offline   Reply With Quote