422,929 Members | 1,355 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 422,929 IT Pros & Developers. It's quick & easy.

how to sperate numbers, letters and special characters

P: 1
how to sperate numbers, letters and special characters
Apr 1 '18 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 921
What do you mean by 'separate'?

This code separates characters by inserting a '|', but I don't think you meant to do this:
Expand|Select|Wrap|Line Numbers
  1. Sub Main()
  2.         Dim test = "abcdef0123456!@#$%^"
  3.  
  4.         For x = test.Length To 1 Step -1
  5.             test = test.Replace(Mid(test, x, 1), Mid(test, x, 1) + "|")
  6.         Next
  7.  
  8.         Console.WriteLine(test)
  9.     End Sub
Warning: this code is not meant to be useful for any purpose...
Apr 2 '18 #2

Post your reply

Sign in to post your reply or Sign up for a free account.