Hi, I want to replace character in a string or substring in string with other string. for example string s = "value", for the string 's' I want to replace character 'e' with string 'es' so that the result will be(stored in other string variable) string snew = "values" I have been searching on the forum but being new to DXL I found solutions are bit complex and difficult to understand. Is there any function or method in DXL which will replace character in string with desired value. Prashant7 - Tue Nov 15 07:26:19 EST 2016 |
Re: Replace a string with other string using DXL Only home grown solution exists for this.
|
Re: Replace a string with other string using DXL ( Hi ...
You can developp your own functions ... but you have to deal properly with buffers to avoid the DOORS leak memory issues ...
I was pretty sure than i found this VBRegexps.inc in a previous post of this forum, but i can't find it ... The functions are easy to use ... ;) Enjoy ! )
Attachments VBRegexps.inc |