|
-
Apr 25th, 2005, 10:06 PM
#1
Thread Starter
Dazed Member
Need help with regex{Resolved}
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.
Last edited by Dilenger4; Apr 26th, 2005 at 07:14 PM.
Reason: Resolved
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|