0

How would I use regex to extract the string between the third and fourth underscore in the following example:

123456-AB_ABC_ABC123_Extract This_ABCDEFG

I tried

^(?:[^_]+_){3}([^_]+)

But it seems to return all of the characters up to the fourth underscore instead of starting after the third underscore like I imagined. What'd I miss there?

Thanks!

0 Answers0