libregexp: update from Plan 9

R=rsc
https://codereview.appspot.com/10690044
5 files changed