Regex to replace \ and / symbols with - (hyphen sign)

May i know the regex to replace \ and / symbols with - (hyphen sign)

Sample text :

image

@Sathish_Kumar_S

System.Text.RegularExpressions.Regex.Replace(StrPdfText,"\/","-")

This regex replacing only /

image

@Sathish_Kumar_S

System.Text.RegularExpressions.Regex.Replace("07\/08\/2024","\\/","-")

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