Pop-up

Iai rapaziada, conseguem ajudar com um problema.
Preciso pegar uma parte da frase, e grava em uma variante, porem na hora da capitura acaba pegando a frase toda.

Ex:. Xxxxxxx xxxxxxx xxxxxxx 3459876.

Quero pega apenas o número, alguma dica ?

1 Like

Hi,

We can extract target string from whole the string using string manipulation such as regex.
For example, the following will work for the above string.

System.Text.RegularExpressions.Regex.Match(yourString,"\d+",System.Text.RegularExpressions.RegexOptions.RightToLeft).Value

Regards,

Hi

Uma solução simples

Stroutput = Split(strinput.ToString,” “)(3).ToString.Trim

Onde Strinput é a variável de string que tem esse valor e stroutput é uma variável de string que mantém seu valor numérico de saída sozinho

Saúde @Flavio_Silva1

Vou tenta aqui obrigado

1 Like

excelente

está funcionando como esperado

@Flavio_Silva1