I have a string say:
std::string s1 = "@Hello$World@";
I want to match it with another string but only certain characters:
std::string s2 = "_Hello_World_";
The strings must have same length and exactly match ignoring the _ characters which can be anything. In other words, I want to match the sequence of "Hello" and "World" at same indexes.
I could use a loop here ignoring those indexes but I want to know if I can do this with regex expressions?
.Hello.World..