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
Java

Avatar of undefined
Last Comment
CEHJ

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
CEHJ

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
CodeLancer

ASKER
good answer
CEHJ

:)
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23