The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-05-2007
lakshmikanth lakshmikanth is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 6
Unhappy AlphaNumeric String Operations

Hi

I am writing a ksh

I have a string of general format

A12B3456CD78

the string is of variable length

the string always ends with numbers (here it is 78.. it can be any number of digits may be 789 or just 7)

before these ending numbers are alphabets (here it is CD can even be C alone or CDX ..that is length can be varied)

before the CD is a string of variable length that always ends in digits here A12B3456 ....

i want to extract each of these seperately ..
ie
part one A12B3456
part two CD
part three 78

this is a bit complicated for me ... plz help me out