i have string
str = “Text sopp+sopp Ref: 123456 Text”
i want to extract “sopp+sopp Ref: 123456”
i have have this so far
System.Text.RegularExpressions.Regex.Matches(strText,“((sopp+\sopp\s\Ref:\s)\w+)”)
but when i run i get this error
That works perfectly.
i dont suppose i could have help with one more?
strText = “Text TSM001-123456 Text”
im trying to extract “TSM001-123456”
i have this so far
System.Text.RegularExpressions.Regex.Matches(strText, “TSM001–\S*”)