Originally posted by ramesh kancherla:
Hi,
This is Ramesh. I am parsing line of text from a string. I have to find a index of the word in a line.this word contains a number.
line of text is like as
AARON JOSEPH AUERBACH JUDITH A 25B PLAZA ST W APT 8M BROOKLYN NY
can any one please give me suggestion how do i find it.
Thanks & Regards
Ramesh K
Like that.Originally posted by myself:
Sounds like a beginner's question. Sounds like a job for regular expressions.
Originally posted by ramesh kancherla:
Hi Campbell Ritchie ,
yes i have read tutorial. I can write sequence of integers and characters.
but how can I find that numbers with characters not sequence
can you please tell me.
Thanks & Regards
Ramesh K
[ September 10, 2008: Message edited by: ramesh kancherla ]
Discussion - the powerfull way to excellence!
Originally posted by ram kumar:
Hey Ramesh,
I will give you a free code that i was doing once long back for extracting int's from a string.
![]()
![]()
This Should help you solving the problem ! Its just a BaseLine from which you can customize what you want !
This code will get all integers from the String that you supplied.
What ever format that you need to get it is upto your design and customization !![]()
![]()
![]()
![]()
Discussion - the powerfull way to excellence!
Originally posted by ramesh kancherla:
Hi,
This is Ramesh. I am parsing line of text from a string. I have to find a index of the word in a line.this word contains a number.
line of text is like as
AARON JOSEPH AUERBACH JUDITH A 25B PLAZA ST W APT 8M BROOKLYN NY
can any one please give me suggestion how do i find it.
Thanks & Regards
Ramesh K
Discussion - the powerfull way to excellence!
Consider Paul's rocket mass heater. |