Link to home
Start Free TrialLog in
Avatar of CodeLancer
CodeLancer

asked on

String replace

Hi all,
I am getting one resultset value from query and i assigned it string which have these values
SI_NAME,
SI_ID,
SI_OWNER
SI_STARTTIME

In somecases,any one or more values may missing.
All i need to do is to find the above said values in string and replace with the user defined value.
eg:
SI_NAME="codelancer"
SI_ID="11"
SI_OWNER ="admin"
SI_STARTTIME ="11:45:12"

The important thing here to consider is that order the values assigned in input should be same in output string also i.e

Input String embedname="3&6q=%25SI_NAME%25%25SI_ID%25%25SI_OWNER%25%25SI_STARTTIME%25,0P&6p,0P";

output from string :SI_NAMESI_IDSI_OWNERSI_STARTTIME

final desired output :codelancer11admin11:45:12

Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CodeLancer
CodeLancer

ASKER

good answer
:)