[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Split

Posted on 2006-03-29
1
Medium Priority
?
188 Views
Last Modified: 2010-04-23
Is there anyway to split by 2 characters rather 1. I wanna split a string by String.Split(".-") vs. String.Split("-")
0
Comment
Question by:thenrich
1 Comment
 
LVL 64

Accepted Solution

by:
Fernando Soto earned 200 total points
ID: 16326971
Hi thenrich;

Regex will do that for you nicely.

Imports System.Text.RegularExpressions

        Dim input As String = "Hello:-World"
        Dim output() As String = Regex.Split(input, ":-")


Fernando
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question