how to split the string?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • apssiva
    New Member
    • Feb 2011
    • 26

    how to split the string?

    Hi,

    The value was mixed('5097'), so i want to split the year "09". how to split, can you?
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    What do you mean? Do you want to split the string on "09", leaving you with an array with 5 and 7, or do you want to extract "09" from the string?

    In either case, if you want to successfully parse any type of string, there needs to be a pattern; some rules that govern how the string is to be split. (A specific char to split on, a range, specific indexes, etc...)

    Tell us those rules so we know what we are dealing with.

    Comment

    • apssiva
      New Member
      • Feb 2011
      • 26

      #3
      The value was mixed('5097'), so i want to split the year "09" as a number. can u help me?

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        How is that the year? I've never seen a date format where the year is a 2 digit number wedged between month and day or vice versa.

        Comment

        Working...