troubleshooting Question

String replace

Avatar of CodeLancer
CodeLancer asked on
Java
3 Comments1 Solution261 ViewsLast Modified:
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
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros