Last line of letter using REGEX

Hi @m.soto ,

Using regex with groups, we should be able to pick the last line value :

(?s:.*\r?\n)*(.+)$

System.Text.RegularExpressions.Regex.Match(InputText,"(?s:.*\r?\n)*(.+)$",System.Text.RegularExpressions.RegexOptions.Multiline).Groups(1).value.ToString

Debug Panel :
image

1 Like