We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Trim a string

s=s.Trim(..) will trim both the beg and the end Is there an easy way to Trim the whole string and especially the middle. Let's say I want to trim all the "'" characters off the string: "Let's say, your's idea"

2 Replies

AD Administrator Syncfusion Team December 17, 2002 06:39 AM

Maybe you can use the split-method....


SK Shardool Karnik December 17, 2002 12:16 PM

use the replace function .... something like this ... Replace("'", "") .... . - dooL > s=s.Trim(..) will trim both the beg and the end > > Is there an easy way to Trim the whole string and especially the middle. > Let's say I want to trim all the "'" characters off the string: "Let's say, your's idea" > > >

Loader.
Live Chat Icon For mobile
Up arrow icon