[code=python]
#assume that I have a string
stringA = 'ASD DSA DASFSADSA FSAFSADSAF AS'
# I would like to make it
stringA = '1$ASD DSA D2$ASFSADSA FSASADSAF 3$AS'
#whatever there is 'AS' it should become 'i$AS', where i is its occurrence in the string
#how can I do that?
[/code]
#assume that I have a string
stringA = 'ASD DSA DASFSADSA FSAFSADSAF AS'
# I would like to make it
stringA = '1$ASD DSA D2$ASFSADSA FSASADSAF 3$AS'
#whatever there is 'AS' it should become 'i$AS', where i is its occurrence in the string
#how can I do that?
[/code]
Comment