Jump to content


Photo

Second capture group


Best Answer Spring, 31 August 2017 - 04:44 PM

I definitely fixed it. Thanks though.

Go to the full post


  • Please log in to reply
1 reply to this topic

#1 Spring

Spring
  • Members
  • PipPipPip
  • Advanced Member
  • 224 posts

Posted 31 August 2017 - 04:24 PM

So I'm playing around with Regex : here's a working example

https://regex101.com/r/ttNcvw/1

as 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 [url until it reaches the the last [/url], I've been working on trying to have it stop once it finds the first [/url] 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 by Spring, 31 August 2017 - 04:26 PM.

Let me get my crystal ball out.


#2 Spring

Spring
  • Members
  • PipPipPip
  • Advanced Member
  • 224 posts

Posted 31 August 2017 - 04:44 PM   Best Answer

I definitely fixed it. Thanks though.


Let me get my crystal ball out.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users