Hi :)
I'm looking for function similar to "match" where question mark, or something like that, can replace any number of characters.
To be more specific, if I use that:
match("a?c", "abc") it will return true, but if i use that:
match("a?c", "abbc") it will return false.
I'm searching for function that will return true on second case too.
My only idea is that I could create loop and in every step add one more question mark and execute match function, but it would be inefficient on large strings and very complicated on strings with more than one question mark like "a?c?e".
Is there any solution for my problem? I haven't found anything that could help mi with that.
*This post is locked for comments
I have the same question (0)