0

I try to insert an optional whitespace. Somehow it's not working in the lookbehind.

Regex:

(?i)(?<=SomeValue\s=').*?(?=')

SomeValue='String2Find'   (matches)
SomeValue ='String2Find'  (not matching but should match)

Demo: https://regex101.com/r/u67T1W/2/

br0ken.pipe
  • 730
  • 2
  • 13
  • 28

0 Answers0