I need to get a certain number that is inside a string (in this case the return of a select
). The table is written like this:
CreditCash_Aderencia_AD_20180823;20180823;Arquivo convertido para CSV com 503 linhas
CreditCash_Aderencia_20180823;20180823;Arquivo convertido para CSV com 1399 linhas
CreditCash_Aderencia;20180823;Não foi possível executar o sistema em 3 tentativas
CreditCash_Aderencia_AD_20180822;20180822;Arquivo convertido para CSV com 500 linhas
In this string I need to get only the number that is before linhas
, in case 503 for example (which can be variable).
I need this number because I will put in update
to make changes only in those that have more than 500 converted lines.