This should help you out
Dim aString As String
Dim arString() As String
aString =
"AAAAAAAAAAAAAAAAAAAA111111BBBBBBBBBBBBBBBBB111111CCCCCCCCCCCCCCCCCCC111
111DDDDDDDDDDDDDDDDDD"
arString = Split(aString,"111111")
now you can loop over the array and rebuild the string with 1, 2,3...
at the appropriate places
hth
Bart
On 4-sep-06, at 21:21, RBNUBE wrote:
I have a very long string that contains multiple occurrences of a
string I
would like to replace.
As an example:
AAAAAAAAAAAAAAAAAAAA111111BBBBBBBBBBBBBBBBB111111CCCCCCCCCCCCCCCCCCC11
1111DD
DDDDDDDDDDDDDDDD
Say I want to replace the second instance of the series of ones with a
series of twos. How would I go about doing this? This would seem
to be
simple, but I am stumped.
Thanks for any suggestions.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>