0

I need to match the line before a particular string. I am using ^.+(?<=abc) regex to match, this works for greedy pattern. i am looking for non-greedy pattern.

e.g /123/345/abc/v2/xyz/abc/dgdes/aegweg

expected result: /123/345/abc

What i get is /123/345/abc/v2/xyz/abc/

Appreciate any help.

AKV
  • 183
  • 4
  • 24

0 Answers0