Results 1 to 3 of 3

Thread: Need help with regex{Resolved}

Threaded View

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width