I have a string ,need to extract the value which is after the particular word,it may be in the next line or in the same line,
Ex: In the below string I need to extract the value ‘XS2031323285’ which is next to ISIN.
The problem is,I can extract the word when ISIN and ‘XS2031323285’ will be in same line,but when ISIN in one line and ‘XS2031323285’ in the next line ,not able to extract.
Senerio 1 :
INDUSTRY government development banks ISIN XS2031323285
H ABC equals
Senerio 2 :
INDUSTRY government development banks ISIN
XS2031323285 H ABC equals
Tea factory 2
In the above 2 example I need to extract
XS2031323285
You can try this regex expression it will match the extract the word when ISIN and it will be in same line or multi line it will pick exactly once try this