Remove first and last 3 characters of a string

  • Follow


Hi,


What are the possible ways of removing first character and last 3
characters from a string.
eg. variable values: A876479003, A675846003, A6842003.
     I am expecting the following values: 876479, 675846, 6842

Thanks,
Sri
0
Reply Sri 5/14/2010 9:30:25 PM

You can use LENGTH() function to determine how long the string is then use 
SUBSTR() function to capture the range of the characters you want to keep.

"Sri" <sriseepana@gmail.com> wrote in message 
news:f4fc456a-d283-4240-ab2b-c5117ace4b50@s4g2000prh.googlegroups.com...
> Hi,
>
>
> What are the possible ways of removing first character and last 3
> characters from a string.
> eg. variable values: A876479003, A675846003, A6842003.
>     I am expecting the following values: 876479, 675846, 6842
>
> Thanks,
> Sri 

0
Reply Kenneth 5/16/2010 7:10:02 AM


1 Replies
2294 Views

(page loaded in 0.047 seconds)

Similiar Articles:













7/21/2012 11:15:51 PM


Reply: