In PHP there is the levenshtein-method, right?
With it you can check how similar two strings are.
But is there a way that you have a pattern (regEx) that you compare with a string?
So let's say you have the pattern: L234X567PP All of the Numbers are changeable. Just the letters must be there (and at exactly the same position)
So now you have some Strings:
L000X000PP
L987X123PP
Those should be valid.
B000X678XX
This is not valid but levenshtein detects a similarity and could ask to correct the wrong letters (is that possible?)
How can you do this with PHP?