L
localhost
I have a string that looks like this:
"document.form1.textBox1.focus
();document.form1.textBox1.select();"
I want to replace the text between "document.form1."
and ".focus()",
as well as the text betwen "document.form1." and ".select
()".
Ultimately the effect is replacing "textBox1"
with "textBox2",
but my method has no way of knowing that "textBox1" is
the
text that must be replaced, since the entire string comes
to it.
How do I replace a value when I don't know what the value
is?
I don't think I want to use a regex because of the speed
penalty in instancing the class over and over.
Thanks.
"document.form1.textBox1.focus
();document.form1.textBox1.select();"
I want to replace the text between "document.form1."
and ".focus()",
as well as the text betwen "document.form1." and ".select
()".
Ultimately the effect is replacing "textBox1"
with "textBox2",
but my method has no way of knowing that "textBox1" is
the
text that must be replaced, since the entire string comes
to it.
How do I replace a value when I don't know what the value
is?
I don't think I want to use a regex because of the speed
penalty in instancing the class over and over.
Thanks.