I am studying for a test and I am trying to figure this out, Could someone please help me with this answer? I think it might be number 2, (/^\d{5}$/) I am not sure. What are your suggestions?

  1. /[d5]/
  2. /^\d{5}$/
  3. /+\d[5]?/
  4. /$\d5^/

Number 2 is correct.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.