Wildcard PHP text search
Posted
by Chris
on Stack Overflow
See other posts from Stack Overflow
or by Chris
Published on 2010-03-21T19:53:14Z
Indexed on
2010/03/21
20:01 UTC
Read the original article
Hit count: 307
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
© Stack Overflow or respective owner