Comparer un std::string avec 1 caractère variable
Bonjour tout le monde.
J'aimerais savoir s'il est possible de comparer deux std::string entre elles mais pouvant être considérés comme égales même si un caractère (variable) diffère.
Par exemple : tant que l'on à cet expression "test(X)" ou X peut prendre n'importe quelle expression (test(5), test(u), test(µ)...), alors cette expression est considéré comme égale à un autre std::string qui n'a pas ce même caractère X. Ex : "test(a)" == "test(b)" est vrai.
J'espère que vous m'avez bien compris :)
Merci d'avance.