Hi Guys can you please help me to extract regex to get a value from text below?
example 1 : Carbohydrate / Glucides 11 g\r0 %\r8 % Fibre / Fibres 0 g\rSugars / Sucres 8 g
example 2 : Carbohydrate / Glucides 9 g\r14 %\r1 % Fibre / Fibres 4 g\rSugars / Sucres 1 g
Fibre - 0 in example 1 AND 14 in example 2 highlighted in bold
Sugar - 8 in example 1 and 1 in example 2 highlighted in bold,
The issue is sometimes the values can be as below so it should work for all
example 1 : Carbohydrate / Glucides 11 g\r0 %\ Fibre / Fibres 0 g
example 2 : Carbohydrate / Glucides 9 g\r1 %Sugars / Sucres 1 g
or
example 1 : Carbohydrate / Glucides 11 g\r Fibre / Fibres 0 g\rSugars / Sucres 8 g
example 2 : Carbohydrate / Glucides 9 g\r14% Fibre / Fibres 4 g\rSugars / Sucres 1 g
yes the text is retrieved from word table but the text in table is anchored correctly but when extracted digit value is coming before the actually one.