i want to grab a number if the number is before or after a certain text ("b"), using python and a single regex. The "single" here is important....
so the following case should match (even if the first is optional as will never happen...)
- b 1 b
- b 2 c
- c 3 b
this should not:
- c 4 d
i toyed around (lookahead and back) but nothing really worked. i belive this should be possible using some look around stuff and ... magic? But i can't figure out how...
see this regex101 for a starting point...
if this is not possible, why? if this is possible, how?