This is my test input string
Test code <div>Testing here. Div contents</div> Blah Blah <div>Second div</div>Blah
I need to capture the contents between . Please help me understand how to build the regex to accomplish this with some explanation?
asked Jul 11, 2020 at 12:44
1 Answer 1
answered Jul 11, 2020 at 13:23
-
Yes, this is finding the match. Could you please write a few lines on how you built this regex. Thanks Kaushik.CodeForGood– CodeForGood2020年07月11日 14:40:26 +00:00Commented Jul 11, 2020 at 14:40
-
Just want to know what does '?<=' do?CodeForGood– CodeForGood2020年07月11日 15:48:20 +00:00Commented Jul 11, 2020 at 15:48
-
@CodeForGood I provided a demo link, where you can see the explanation for this regex at right side.Kaushik C– Kaushik C2020年07月13日 05:27:49 +00:00Commented Jul 13, 2020 at 5:27
-
?<= is for positive look behind. refer this link for understand what is "Positive and Negative Lookbehind ". regular-expressions.info/lookaround.htmlKaushik C– Kaushik C2020年07月13日 05:46:03 +00:00Commented Jul 13, 2020 at 5:46
default