iteration problem
Moderator: General Moderators
iteration problem
Could someone help me? I have string testxxxxxend(15)end(16) and I do test.+end\((\d+)\). Result is (16). But I need first iteration - (15). Couldn't find it in documentation. Thank you.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: iteration problem
Yes I use preg_match.
Re: iteration problem
Should be test.+?end\((\d+)\). Thank you.