expandEdits function

Expand an edit expression