in reply to Reg exps?

So, is there not any way to match a string of some words that is contained in a bigger string but the words are not in order?

1. split your name into various strings
2. check if each of these strings are in your DB-string (e.g. using substr() instead of an regex)

HTH, Rata

Replies are listed 'Best First'.
Re^2: Reg exps?
by matze77 (Friar) on Jan 14, 2010 at 18:09 UTC
    Just a thought: Maybe you could (after splitting your string in substrings) do a match if you counted (set $counter for each match) e.g. 2 strings (out of 3 or whatever you think is ok) are in the "complete string" or something like that? After testing that to a larger amount of data u maybe adjust this till it fits ...


    hth
    MH