Match sed behavior for sed editing
Before s/a/b/
turns "aaa" into "bbb", while actual sed would turn it into "baa". This updates the sed editing (sediting?) syntax to match the actual behaviour of sed. The g
flag is supported for doing global replacements when desired.
This closes #428 (closed).