New York Housing May 11 F
New York Housing May12 Jun12 F
New York Housing May 12 Aug 12 O
NYMEX RBOB Gasoline Options Jan10 O
The last digit can be either F or O. The spaces can be present or not in between Month and Year and SecurityType (F or O)
Can you please give me the method to get the substring such that the method should return
201105 for the first one
201205201206 for the second one
201205201208 for the third one.
201001 for the fourth one.
in the fastest efficient way possible?
I need this in Java