Como extrair apenas números de uma string?

Preciso extrair somente números contidos no assunto de um e-mail. Já tratei o e-mail e agora preciso somente dos números.

question
quando uso essa regex ele me retorna dizendo vazio

erro

can you try Strin.Empty instead of nothing like String.Join(String.Empty,…
Also check if the split is returning a value e.g. by debugging the flow

Empty não aceita

@Ilana_Ribeiro
sorry but was not the Suggestion

String.Join(nothingString.Empty,Split…

maybe the intention was to assign the mail.header to Assumto

Erro2 sorry

Eu só preciso do assunto

however do not replace String.Join. Debug the flow for further analysis

Deu certo usando Regex.Replace(STRING_AQUI,“[^\d]”, “”)
REGEX

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.