• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1075
  • Last Modified:

Remove carriage return conditionally

Hi,

I am looking for a good way in VBScript to remove a vbCrLf condtionally.  Basically to remove the carriage return based on a substring of data.  

Thanks!
0
orionpm
Asked:
orionpm
1 Solution
 
dlwyatt82Commented:
You need to be more specific.  However, Regular Expressions are generally well-suited to any string parsing task such as this.
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
I take it you don't want to remove all vbCrLfs with a Replace command:

    someStringVariable = Replace(someStringVariable, vbCrLf, "")
0
 
orionpmAuthor Commented:
I figured this one out and have requested that this question be removed.... Thanks...

http://www.experts-exchange.com/Community_Support/Q_21897467.html
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now