fixes for ruby 1.8.7 and regexps in trigger.rb

Hello,

There were problems with regexps in trigger.rb, however the syntax was fixed only for 2.0api. So I fixed syntax in 1.8api as well.
Also I put the require 'net/https' without it the zabbixapi won't properly work on ruby 1.8.7

Regards,
Denis