Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Seperate integer, char and special char
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

Please help me to slove the below scenario.
I have a Input string '12ca#$3d*'
Please seperate the integer, char and special char from the input string.
That is output is
var1=123.
Var2=cad
Var3=#$

Thanks...


Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
is this string going to be a constant? If yes, then we can use Split function.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Alias,

Get the ascii value of each char and check if it corresponds to number or alphabet or special char and distribute it in your variables using concatination.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Convert the single to an integer Mozza 2 1,416 09-27-2018, 12:36 PM
Last Post: Ankur
  Spaces and special characters in datatable headings anthony1carr 2 4,190 10-21-2013, 08:33 PM
Last Post: anthony1carr
  how to pass an integer array variable in a query sujaravi123 1 3,420 10-28-2011, 01:44 PM
Last Post: ravi.gajul
Smile Geting integer values from a Java Table dineshhcl 0 2,497 03-26-2010, 06:53 PM
Last Post: dineshhcl

Forum Jump:


Users browsing this thread: 1 Guest(s)