get last 5 character vb.net

Posted by Chocho on Stack Overflow See other posts from Stack Overflow or by Chocho
Published on 2010-05-11T18:44:32Z Indexed on 2010/05/11 18:54 UTC
Read the original article Hit count: 269

Filed under:
|
|
|

i want to get the last 5 digits/strings from a strings of words. eg: "I will be going to school in 2011!"

i am using visual studio.net 2008 and using vb.net.

i will like to get "2011!"

note, my strings changes, and the last 5 characters can be anything! any ideas.

i know visual basic have Right(string, 5); this didn't work for me gave me an error. thanks

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about string