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
  • 850
  • 3
  • 17
  • 32

0 Answers0