My users used to have a macro with UltraEdit v16.xx that would delete all the lines from an HTML file contained the string [[. We have migrated to the current version of UE for Mac and this macro doesn't work exactly as written anymore and that's OK as I would like to automate their process a little bit more by using UE script.
I found the delLinesCntgStr.js script that prompts the user for the string they want to find. This script works fine when the user enters \[\[. I tried to hard code the string "\[\[" into the script and comment out the prompting section. When I run my version of the script it fails, telling me I have "entered an invalid regular expression".
How do I hard-code the [[ search string into this script so the user does not have to respond to a pop-up prompt each time they run it?
I found the delLinesCntgStr.js script that prompts the user for the string they want to find. This script works fine when the user enters \[\[. I tried to hard code the string "\[\[" into the script and comment out the prompting section. When I run my version of the script it fails, telling me I have "entered an invalid regular expression".
How do I hard-code the [[ search string into this script so the user does not have to respond to a pop-up prompt each time they run it?