Im guessing this maybe uses regex or an iterator or something? but just wondering how I would be able to check to see if certain string characters were the same? for example:
std:string myString;
inside myString I have the following output: 12b2c69z77m so the data inside the string is just 1 or 2 numbers followed by a letter. These are all individual data so in the above example its 12b 2c 69z 77m I currently do not uses spaces or brackets to seperate them as I dont know how to use regex (or something similar) to remove the brackets or spaces from a search.
I would like to be able to say in code:
1 2 3 4
if (any of the combinations in myString are the same, such as 12b appearing twice)
{
callRandomFunct;
}