Remove character


I want to remove the
Answer the following questions: Each question carries 2 marks full character in to null or empty in the middle whatever numeric digit is there that’s varies anyone could you help me for this

Thanks in advance

Do you want to remove the numeric char in it or the complete sentence?

i need to remove complete scentance but that numeric value will differ document to document


Hope the following expression helps you.

strData = System.Text.RegularExpressions.Regex.Replace(strData,"Answer the following questions: Each question carries \d+ marks","")


1 Like

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