All Commands
All String
Commands
REG_ADJ
There are three adjustment options, specified with the type parameter,
- Prefix
- Replace
- Suffix
The adjustment occurs if the expression parameter, a regular expression, matches the context string.
Prefixing the expression parameter with a "!" will cause the adjustment to occur if the expression does not match.
The adjustment parameter will prefix, replace or suffix the context parameter, if a match occurs.
The context parameter, what is compared and adjusted, can be specified within the command parameters or, if longer, an {END_REG_ADJ} may be used.
This command can have an {END_REG_ADJ} command.
In this case, the last parameter can be excluded from the arguments and the area between the {REG_ADJ()} and {END_REG_ADJ} will be used instead.
Number | Name | Default | Type | Description |
---|---|---|---|---|
1 | type | 0 | Integer | The type of adjustment to perform. |
2 | expression | String | The regular expression to use. | |
3 | adjustment | String | String to use when modifying. | |
4 | context | String | String to check. |