find & vbCrLf & within a string - vb.net -


in string have "first & vbcrlf & name" - however, want take out & vbcrlf & doesnt cause line break.

i have done

if thestring.contains("& vbcrlf &")     ' , replace, above of course, want go if end if  

and

if thestring.contains("\n")     ' , replace, above of course, want go if end if  

and "\r\n" no avail.

what missing?

if thestring.contains(vbcrlf)     'do end if 

alternatively...

thestring = thestring.replace(vbcrlf, "") 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -