I try to match 01010 with /010/ but there is one return (01010) for this match. There are actually two match (010-is common-10) in that string with regex. I used /010/g but againit returns just one match. Is it possible to match this regex twice with such string?
erogol
0
Newbie Poster
Recommended Answers
Jump to PostI don't see how to match 010 twice but you could match 010 and 10 by using /.*?10/.
All 2 Replies
Reply to this topic
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.