USA
800 691 9120
UK
01225 704844
We use cookies on our website to analyze website usage and to help secure the website against misuse. Advertising and functional cookies are not used in our site or our web application products.
By clicking “Accept Essential Cookies Only”, you consent to us placing these cookies.
Replace the first occurrence of a string within a given string
Finds the first occurrence of the search string within the source string and replaces it with the replacement. The result is stored in the result buffer. Unlike Replace, only the first match is replaced.
| Parameter | Description |
|---|---|
| cmd | Source string to search within |
| Argument 0 | String to find |
| Argument 1 | Replacement string |
ReplaceFirst "Source string to search within", "String to find", "Replacement string"