Hi every good willing people :
I tried to understand string manipulation (http://developer.anscamobile.com/content/strings), but it’s rather obscur for me …
I try to do the following :
string1 = “abcdeabcde”
string2 = “cbaaaf”
comparison(stringReference ,stringToCompare )
and then get
- string2 letters found in string1 (cbaa)
- string1 letters missing in string2 (debcde)
Edit :
I’ll try to be more explicit :
My strings are lower letters only, I don’t care about letters order in my results.
What I really wish to do is to go through the string1 and get the following answer for each letters : isinstring2 or isnotinString2.
The problem is that I don’t know how to tell, once a letter in string2 has been “used” for comparison", not to look at it again :
When I reach the first c (abCdeabcde) in the subject, I should get OK, but when I reach the second c (abcdeabCde), I should get Not in string2 (since there is only one c in my string2)…
Hoping I’m clear
Thx for any help. [import]uid: 9328 topic_id: 16075 reply_id: 316075[/import]