Ive been trying to create a pattern that just matches three digits and three characters. Ive figured it out but in some instances it doesn't work quite right. Here's the pattern "(\\d{3}\\w{3})". "164Bdr" match, "121324" match but don't want to, "brd123" no match, "Brstd" no match.
It seems the pattern is failing on the \\d. The quantifer is greedy so that might be the problem.


Reply With Quote