Special character problem

I wants to extract that highlighted text & create a SharePoint folder with that extracted text but problem is SharePoint doesn’t allow any special characters in folder name ,so what can do ?

@pravin_bindage

You have to remove all the special characters…As you said Sp would not allow then

System.Text.RegularExpressions.Regex.Replace(YourString,"[^A-Za-z 0-9]","")

This expression will replace all special characters

cheers

1 Like

More VB.Net native solution would be:

New String(strInputString.Where(Function(c) Char.IsLetterOrDigit(c)).ToArray())

:robot:

Regards!

1 Like

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