I have a text.
The overall system blur must be smaller than 12 mrad and diameter shall be less than 20 meters.
I want to extract:
must be 12
I'm using:
^(.*?(\bmust be\b[\s*?\D]*\d+)[^$]*)$
And I get
must be smaller than 12
Any way to do this directly? Or better to try to do different groups somehow?