Fix Index Markers with regex and Find and Replace script
Hi Everyone,
This is my first time creating a script for FM and I'm having some trouble getting this to work. I have some index markers that have had a semicolon replaced with a colon, which is creating havoc in my Index file. I wanted to use an regex expression with a Find and Replace script to correct them. There are a great many of these to find and fix and doing it manually isn't too appealing (though if I have to, I will). My script, which has been stolen/cobbled from other posts here, seems to run (I get the message box showing X number of replacements made) but it doesn't actually perform the replace part (script below). I'm not sure it's performing the Find part either, come to think of it. Any help would be most appreciated!
Thank you in advance,
Megan
