in reply to A regex question

it's because the 2nd "blah" in the input is really "blah\n", which matches /blah/, and gets replaced with "something ".
the hardest line to type correctly is: stty erase ^H