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_I D%25%25SI_ OWNER%25%2 5SI_STARTT IME%25,0P& 6p,0P";
output from string :SI_NAMESI_IDSI_OWNERSI_ST ARTTIME
final desired output :codelancer11admin11:45:12
Thanks in advance
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
output from string :SI_NAMESI_IDSI_OWNERSI_ST
final desired output :codelancer11admin11:45:12
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:)
ASKER