How do I match a pattern within a line, only if line begins with a specific criteria?
For example, say we'd like to match a 6-digit number on lines with begin only with Banana
Banana lmasfh asfjhas jhona uh3 a y u3u3 303303 ajksdfkas 3jk5hk
Banana lmasfh asfjhas jhona uh3 a y u3u3 202202 ajksdfkas 3jk5hk
Apple lmasfh asfjhas jhona uh3 a y u3u3 101101 ajksdfkas 3jk5hk
From above, the result should be 303303 and 202202 only.
I tried looking into positive lookbehind but they're of fixed width and couldn't proceed. Something like: (?<=^Banana)\d{6}