I am trying to get sub-string based on some pattern. trying to fetch first number which should not be in first character of main string.
Strings:
BRUSPAZ 8MG
BRUSPAZ MG
BRUSPAZ 10 MG
BRUSPAZ10 MG
AVAS 40
AVAS 40 TEST 2TABS
MICROCEF CV 200 TABS
1CROCIN DS 240 MG / 5 ML SUSPENSION
My Regular Expression : /(\d+)( )?(MG)?/
Required Output:


10inBRUSPAZ10not in the first word?