Scripts - Format of Script Files (/ switches)
If you examine some of your Search and Replace script in your text editor you may be curious what the switches are with in the [Search] and [Replace] tags. The possible switches are:
Tags and Possible Switches | |
[Search] Tag /i = Case Insensitive /x = Regular Expression Mode /b = Binary Mode /w = Whole Word Mode /h = Ignore Whitespace Mode /t = HTML Mode /r? = Repeat ? number of times /g = Do not use this s/r pair |
[Replace] Tag /b = Binary Mode |
Important Notes:
All switches cannot be used at the same time in the [Search] section as not all modes are compatible with each other. For example, you cannot use /i and /t at the same time. The built-in script editor will prevent incompatible tags from being used at the same time so construct your scripts using that.
See Script Repeat Action for information on the /r switch. The value specified must be 1 or above.
The / character can appear only once. For example, Case Insensitive Regular Expression would be /ix
Order does matter. Again, use the built in script editor to set up your initial script.
The /g switch is related to the and checkboxes in the Search/Replace strings section of the script editor. /g means "disable this s/r pair" ().