regex-pattern-with-shorter-back-reference-does-not-work-as-expected (patch 1 of 1)

'git apply --summary --stat --apply --verbose' output was:

 src/backend/regex/regexec.c         |    7 +----
 src/test/regress/expected/regex.out |   52 +++++++++++++++++++++++++++++++++++
 src/test/regress/sql/regex.sql      |   11 +++++++
 3 files changed, 65 insertions(+), 5 deletions(-)

For original context, see http://www.postgresql.org/message-id/CAM2+6=U8CdfM-qL55XHt+7hVzDRBnZwrHiVZRX2shGZ4OMuMSQ@mail.gmail.com
Adding travis.yml