
jmulcahy asked a question.
Finding an unknown string between two known strings
Hi everyone, I tried searching for this, but I couldn't find an answer. During one of our installs, we are allowing the user to update which database they are pointing too, this information is stored in an XML file. I have code to replace that value, but I wanted to read that value before hand so we can display where it's currently pointed. I'm having trouble finding out how exactly to do that. I know the string that comes before the machine name, and the one after, but I will never be able to tell what the actual value is, nor the length of it. Is there an easy function to do this? I'm looking for a function that would take an input like this: stringStart = '" endString = '" desc="Database Server Name" />' findString(startString, endString); is this possible?