extract code sections from text and store in separate field