Extract String betwien two characters

Hi, can somebodey help me extract the string betwien # and #.
Ex. “pkashvje987654321adfbsv#123456789#wefawrefb” resoult = “12346789”

HI @tomaz

Check out the expression

System.Text.RegularExpressions.Regex.Match(YourString,"(?<=#)\d*(?=#)").Tostring

image

1 Like

Hi @tomaz

Check this too

System.Text.RegularExpressions.Regex.Match(YourString,"(?<=#)\d.*(?=#)").Tostring

image

Regards
Gokul

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