Wildcard PHP text search
- by Chris
I have a text string that has been doctored to be web safe URLs i.e. non alphanumeric's are converted to "_".
What I want to do is search for the original name before it was converted, this means that I need some kind of wild card search i.e.
What I have
test__mytest
With wildcards
test??mytest
The string I would find with the wildcard search
test: mytest
Can someone tell me how to achieve this in PHP?
Thanks