Hi all, 

That's about the whole story, but I'll make it short.
For example, I have a list like this :

123ABCDEF456
123456
654WXYZ321
987654321
ABCDEF123456
WXYZ321

By user's INTEGER input , I will have to find how many similar
patterns are matched within the list according to certain chars (user's
input ) :

For example, I input '3', then I will get the result like this :

Res1: 123ABCDEF456 is similar to 123456
Res2: 123ABCDEF456 is similar to ABCDEF123456
Res3: 654WXYZ321 is similar to 987654321
Res4: 654WXYZ321 is similar to WXYZ321

In case , if a pattern match happens, then the elem in list will not
be shown again even another match happens. Okay, thaz my 
homework for how to deal with the output.

The question I want to ask is how to tell ( or is this a good starting
point ) the regex to compare the patterns freely ? So I can get
654WXYZ321 match 987654321 and also match WXYZ321 ?

I hope I can explain my question well.

Thanks in advise,
Li



Reply via email to