This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to find & replace exact matches?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 25, 2008
10:17 AM
How to find & replace exact matches?
Hello,
I have string like this.
STRING string1 = "abc abcde dfgabc";
i want to replace abc (only the exact match) with 123.
i tried with strreplace, but it replaces all the occurances.
how can i do it in installscript ? any idea?
Thanks,
Akshara
I have string like this.
STRING string1 = "abc abcde dfgabc";
i want to replace abc (only the exact match) with 123.
i tried with strreplace, but it replaces all the occurances.
how can i do it in installscript ? any idea?
Thanks,
Akshara
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 25, 2008
09:28 PM
pls let me know if any idea?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 26, 2008
12:42 AM
Hi
Maybe you can try it out,
Create the users custom function.
Use basic functions like StrGetTokens to the String separated by delimiters i.e. ' '(Space) and by comparing it with the StrCompare and Append the Strings to obtain result.
Maybe you can try it out,
Create the users custom function.
Use basic functions like StrGetTokens to the String separated by delimiters i.e. ' '(Space) and by comparing it with the StrCompare and Append the Strings to obtain result.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 27, 2008
08:15 AM
thanks..i implemented in the same way.