Spring Posted August 31, 2017 Share Posted August 31, 2017 (edited) So I'm playing around with Regex : here's a working examplehttps://regex101.com/r/ttNcvw/1as you can see, in the second capture group, specifically here [/url][url=ok.com]ok As you can see, it's capturing everything that comes after the first , I've been working on trying to have it stop once it finds the first rather than the last instance of /url] so that it will be able to capture links on the same line, rather than having to put them on different lines.How would I change this properly? Edited August 31, 2017 by Spring Quote Link to comment https://forums.phpfreaks.com/topic/304818-second-capture-group/ Share on other sites More sharing options...
Solution Spring Posted August 31, 2017 Author Solution Share Posted August 31, 2017 I definitely fixed it. Thanks though. Quote Link to comment https://forums.phpfreaks.com/topic/304818-second-capture-group/#findComment-1550501 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.