How to know if a string exists inside a string?
Hi Everyone,
How to know if a string exists inside a string.
Ex:
string A = "C:\Program Files\mysoft folder"
string B = "mysoft folder"
And how to know if String B is inside string A.
Thanks,
Hien Vo
Archive: How to know if a string exists inside a string?
How to know if a string exists inside a string?
Hi Everyone,
How to know if a string exists inside a string.
Ex:
string A = "C:\Program Files\mysoft folder"
string B = "mysoft folder"
And how to know if String B is inside string A.
Thanks,
Hien Vo
check out the additional section "C.4 Search in a string"
and/or
use !include `StrFunc.nsh` to include the string functions header; it contains a similar StrStr function that is more user-friendly to access. Read StrFunc.txt in the <install path>NSIS\Include\ folder for documentation.
Or another option is WordFind, WordFindSx, etc. listed in NSIS help, appendix E. (There are also several examples in help.)