我的代码终于起作用了:
res = Net::HTTP.post_form(URI('http://jobcoin.gemini.com/protozoan/api/transactions'), {})
=> #<Net::HTTPBadRequest 400 Bad Request readbody=true>
res.body
=> "{\"error\":{\"amount\":[\"This field is required\"],\"fromAddress\":[\
我正在尝试理解以下正则表达式,它将域名从URL中提取出来
$host = "www.php.net“
// get last two segments of host name
preg_match('/[^.]+\.[^.]+$/', $host, $matches);
echo "domain name is: {$matches[0]}\n";
$matches作为php.net怎么样了?
我被这种模式卡住了。^的意思是免费的。意思是任何焦炭。那么是什么呢。卑劣?免费赠送什么焦炭吗?请帮帮忙