D
Dimitris Georgakopuolos
Hello,
I have a text file that I load up to a string. The text includes
certain expression like {firstName} or {userName} that I want to match
and then replace with a new expression. However, I want to use the
text included within the brackets to do a lookup so that I can replace
the expression with the new text.
For example:
Lets say the text file reads:
Hello {firstName}, Your account {accountName} has been updated.
I need to figure out how to write the expression so that the string
reads like:
Hello Dimitris, Your account Hotmail has been updated.
after the replacement. Keep in mind that I need to use the value
contained in the brackets so that I can do a lookup to figure what the
corresponding replacement is.
Any help would be appreciated.
Dimitris
I have a text file that I load up to a string. The text includes
certain expression like {firstName} or {userName} that I want to match
and then replace with a new expression. However, I want to use the
text included within the brackets to do a lookup so that I can replace
the expression with the new text.
For example:
Lets say the text file reads:
Hello {firstName}, Your account {accountName} has been updated.
I need to figure out how to write the expression so that the string
reads like:
Hello Dimitris, Your account Hotmail has been updated.
after the replacement. Keep in mind that I need to use the value
contained in the brackets so that I can do a lookup to figure what the
corresponding replacement is.
Any help would be appreciated.
Dimitris