I have the following string
ISA\*01*ABCD BA1\*Y\*1\*\*FR\*DTST103L000P72323232342\*\*NO\*NY\*\*DEVS\*\*ALB VESSEL EXAM1
all I want is to extract DTST103L000P72323232342
I am using the following regex. My question is how do I get second group (\w+)
only.
(BA1\\\*\w\\\*\w{0,2}\\\*\w{0,2}\\\*\w{0,3}\\\*)(\w+)
when I tried to backreference using the following
(?<=BA1\\\*\w\\\*\w{0,2}\\\*\w{0,2}\*\w{0,3}\\\*)(\w+)
I am getting per https://regex101.com/ the following error
{0,2} A quantifier inside a lookbehind makes it non-fixed width
{0,2} A quantifier inside a lookbehind makes it non-fixed width
{0,3} A quantifier inside a lookbehind makes it non-fixed width
Thanks in advance.