Stackoverflow #8844796


Please login or register to vote for this query.

(click on this box to dismiss)

Philosophy Meta

Q&A about the site for those interested in the study of the fundamental nature of knowledge, reality, and existence

  left(str, charindex('^', str) - 1) as Address,
  right(reverse(substring(reverse(str), 2, charindex('^', str))), 4) as Postcode,
  left(reverse(substring(reverse(str), 2, charindex('^', str))), len(substring(reverse(str), 2, charindex('^', str))) - 5)
  select '28 Smith Avenue^MOOROOLBARK VIC 3138^' as str
) as a

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results